<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<head>
<Dst:SMBase type="jquery,eui" pakgagePath="com.dst.slms.supplierprofile.supplierprofile.supplierProfileEdit" uipk="supplierProfileController" title="供应商档案"/>
</head>
<body class="dst-mainbackground">
<div class="dst-container">

<Dst:SMMain title="供应商档案">
	<Dst:SMEDBillToolBar >
	   <Dst:SMDGToolBar title="保存" icon="fa fa-save" bindAction="saveAction"/>
	   <Dst:SMDGToolBar title="提交并关闭" icon="fa fa-clipboard" bindAction="submitAction"/>
	   <Dst:SMDGToolBar title="查看流程图" icon="fa fa-cubes" bindAction="viewFlowAction"/>
	   <Dst:SMDGToolBar title="关闭" icon="fa fa-rotate-left" bindAction="closeAction"/>
	</Dst:SMEDBillToolBar> 
	<Dst:SMForm formid="formobj" >
		<input id="id" name="id" type="hidden" value="${model.id }">
		<div class="easyui-panel" title="供应商档案" style="width:100%;" data-options="bodyCls:'panle-background',collapsible:true,headerCls:'panel-block-teal panel-description'">
			<div style="padding-top: 10px"></div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">供应商分类</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="supplierClassificatio" required="true" DSTFilter=" isEnable='Y'" queryFieldItem="number,name" entityPath="com.dst.slms.supplierprofile.entity.SupplierClassificatioInfo" width="100%" value="${model.supplierClassificatio}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">公司名称</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="name" required="true" validType="['maxLength[100]']" width="100%" value="${model.name}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">供应商编码</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="number" required="true" validType="['maxLength[100]']" width="100%" value="${model.number}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">统一社会信用代码</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="socialCreditNumber" required="true" validType="['maxLength[100]']" width="100%" value="${model.socialCreditNumber}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">法人代表</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="enterpriseMaster" required="true" validType="['maxLength[100]']" width="100%" value="${model.enterpriseMaster}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">成立日期</label>
					<div class="dst-input-block">
						<Dst:SMDateTimeBox id="buildDate" required="true" width="100%" value="${model.buildDate}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm2">
					<label class="dst-form-label">注册资金(万元)</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="registerMoney" required="true" precision="2" width="100%" value="${model.registerMoney}"/>
					</div>
				</div>
				<div class="dst-col-sm2">
					<label class="dst-form-label">币别</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="currency" required="true" dicGroupCode="Currency" width="100%" value="${model.currency}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">企业资质</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="enterpriseKind" required="true" dicGroupCode="EnterpriseKind" width="100%" value="${model.enterpriseKind}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">公司电话</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="linkPhone" validType="['maxLength[100]']" width="100%" value="${model.linkPhone}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">公司地址</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="address" required="true" validType="['maxLength[100]']" width="100%" value="${model.address}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">公司网站</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="webSite" validType="['maxLength[100]']" width="100%" value="${model.webSite}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">公司传真</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="linkFax" validType="['maxLength[100]']" width="100%" value="${model.linkFax}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">主营业务</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="mainWork" required="true" validType="['maxLength[100]']" width="100%" value="${model.mainWork}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">纳税人身份</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="taxpayer" required="true" dicGroupCode="taxpayer" width="100%" value="${model.taxpayer}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">供应商评价</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="supplyEvaluation"  DSTFilter=" isEnable='Y'" queryFieldItem="number,name" entityPath="com.dst.slms.supplierprofile.entity.SupplyEvaluationInfo" width="100%" value="${model.supplyEvaluation}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">省份</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="city" readonly="true"  width="100%" value="${cityname}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">城市</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="cityBase" required="true" queryFieldItem="number,name" onDataChange="updateChange" entityPath="com.dst.slms.system.entity.SysAreaInfo" DSTFilter="type ='AREA_2'" width="100%" value="${model.cityBase}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
				<label class="dst-form-label">标签</label>
					<div class="dst-input-block">
						<Dst:SMTagBox id="labelTag" value="${model.labelTag}"  url="/cost/supplierClassificatioController/getLabelTag" width="100%" multiple="true" textField="typename" valueField="typecode" hasDownArrow="true" ></Dst:SMTagBox>
					</div>
				</div>
			</div>
			<div>
				<div class="dst-col-sm12">
					<label class="dst-form-label">供应商考察评价</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="remake" height="100" validType="['maxLength[500]']" width="100%" value="${model.remake}"/>
					</div>
				</div>
			</div>
		</div>
<%-- 		<div style="padding-top: 10px"></div>
		<Dst:SMEDDatagrid entityPath="com.dst.slms.supplierprofile.entity.SupplierLabelInfo" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="标签" data="${model.supplierLabel}" id="supplierLabel" >
			<Dst:SMEDBillToolBar id="supplierLabeltb">
				<Dst:SMDGToolBar title="新增" icon="icon-entity-addline" bindAction="addRow"/>
				<Dst:SMDGToolBar title="插入" icon="icon-entity-insertline" bindAction="insRow"/>
				<Dst:SMDGToolBar title="删除" icon="icon-entity-deleteline" bindAction="removeRow"/>
				<Dst:SMDGToolBar title="上移" icon="icon-entity-upline" bindAction="moveUp"/>
				<Dst:SMDGToolBar title="下移" icon="icon-entity-downline" bindAction="moveDown"/>
			</Dst:SMEDBillToolBar>  
			<Dst:SMEDColumnMoreHeaderGroup>
				<Dst:SMEDColumnTextBox title="id" field="id" hidden="true" width="100"/>
				<Dst:SMEDColumnBizPromptBox field="supplierClassificatio" required="true" queryFieldItem="number,name" title="标签" entityPath="com.dst.slms.supplierprofile.entity.SupplierClassificatioInfo"></Dst:SMEDColumnBizPromptBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid>	 --%>
		<div style="padding-top: 10px"></div>
		<div class="easyui-tabs tabs-underline tab-color-teal" data-options="plain:true,border:false,selected:0">
				<div title="联系人">
					<Dst:SMEDDatagrid entityPath="com.dst.slms.supplierprofile.entity.SupplierLinkPersonInfo" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
					ctrlSelect="true" title="供应商联系人" data="${model.supplierLinkPerson}" id="supplierLinkPerson" >
						<Dst:SMEDBillToolBar id="supplierLinkPersontb">
							<Dst:SMDGToolBar title="新增" icon="icon-entity-addline" bindAction="addRow"/>
							<Dst:SMDGToolBar title="插入" icon="icon-entity-insertline" bindAction="insRow"/>
							<Dst:SMDGToolBar title="删除" icon="icon-entity-deleteline" bindAction="removeRow"/>
							<Dst:SMDGToolBar title="上移" icon="icon-entity-upline" bindAction="moveUp"/>
							<Dst:SMDGToolBar title="下移" icon="icon-entity-downline" bindAction="moveDown"/>
						</Dst:SMEDBillToolBar>  
						<Dst:SMEDColumnMoreHeaderGroup>
							<Dst:SMEDColumnTextBox title="id" field="id" hidden="true" width="100"/>
							<Dst:SMEDColumnTextBox field="personName" required="true" title="姓名" width="100"></Dst:SMEDColumnTextBox>
							<Dst:SMEDColumnTextBox field="position" required="true" title="职务" width="100"></Dst:SMEDColumnTextBox>
							<Dst:SMEDColumnTextBox field="phone" required="true" title="手机" width="100"></Dst:SMEDColumnTextBox>
							<Dst:SMEDColumnTextBox field="workPhone"  title="办公室电话" width="100"></Dst:SMEDColumnTextBox>
							<Dst:SMEDColumnTextBox field="personFax" required="true" title="传真" width="100"></Dst:SMEDColumnTextBox>
							<Dst:SMEDColumnEnumDicBox field="isdefault" title="是否为默认联系人" dicGroupCode="ISENABLE" width="100"></Dst:SMEDColumnEnumDicBox>
							<Dst:SMEDColumnTextBox field="email" required="true" title="邮箱" width="100"></Dst:SMEDColumnTextBox>
						</Dst:SMEDColumnMoreHeaderGroup>
					</Dst:SMEDDatagrid>
				</div>
					<div title="资质文件">
						<Dst:SMEDDatagrid entityPath="com.dst.slms.supplierprofile.entity.AptitudesFileInfo" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
						ctrlSelect="true" title="资质文件" data="${model.aptitudesFile}" id="aptitudesFile" >
							<Dst:SMEDBillToolBar id="aptitudesFiletb">
								<Dst:SMDGToolBar title="新增" icon="icon-entity-addline" bindAction="addRow"/>
								<Dst:SMDGToolBar title="插入" icon="icon-entity-insertline" bindAction="insRow"/>
								<Dst:SMDGToolBar title="删除" icon="icon-entity-deleteline" bindAction="removeRow"/>
								<Dst:SMDGToolBar title="上移" icon="icon-entity-upline" bindAction="moveUp"/>
								<Dst:SMDGToolBar title="下移" icon="icon-entity-downline" bindAction="moveDown"/>
							</Dst:SMEDBillToolBar>  
							<Dst:SMEDColumnMoreHeaderGroup>
								<Dst:SMEDColumnTextBox title="id" field="id" hidden="true" width="100"/>
								<Dst:SMEDColumnTextBox field="aptNumber" required="true" title="文件标号" width="100"></Dst:SMEDColumnTextBox>
								<Dst:SMEDColumnTextBox field="aptName" required="true" title="文件名称" width="100"></Dst:SMEDColumnTextBox>
								<Dst:SMEDColumnTextBox field="aptLevel" required="true" title="资质等级" width="100"></Dst:SMEDColumnTextBox>
								<Dst:SMEDColumnDateTimeBox field="endDate" required="true" title="到期时间"></Dst:SMEDColumnDateTimeBox>
								<Dst:SMEDColumnTextBox field="awardUnit" required="true" title="颁发单位" width="100"></Dst:SMEDColumnTextBox>
								<Dst:SMEDColumnTextBox field="remark" title="备注" width="100"></Dst:SMEDColumnTextBox>
							</Dst:SMEDColumnMoreHeaderGroup>
						</Dst:SMEDDatagrid>
					</div>
				</div>
				<div class="easyui-panel" title="附件" style="width: 100%;"
					data-options="collapsible:true">
					<Dst:SMWebUploader name="上传文件" callFunction="jbupload"
						buttonText="上传文件" />
				</div>
	</Dst:SMForm>	
</Dst:SMMain>
</div>
</body>
