x<%@ 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.contractmange.paymentreq.paymentReqEdit" uipk="paymentReqController" 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:SMTextBox id="number" validType="['maxLength[100]']" width="100%" value="${model.number}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">组织</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="orgunit" readonly="true" queryFieldItem="number,name" entityPath="com.dst.slms.system.entity.SysOrgInfo" width="100%" value="${model.orgunit}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">项目</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="project" readonly="true"  queryFieldItem="number,name" entityPath="com.dst.slms.base.entity.MarketProjectInfo" width="100%" value="${model.project}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">合同编码</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="contract" required="true" DSTFilter="state='AUDIT'" onDataChange="contract_Change" queryFieldItem="number,name" entityPath="com.dst.slms.contractmange.entity.SaleContractInfo" width="100%" value="${model.contract}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">记账公司</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="jzcompany"  required="true"  queryFieldItem="number,name" entityPath="com.dst.slms.system.entity.SysOrgInfo" width="100%" value="${model.jzcompany}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">业务日期</label>
					<div class="dst-input-block">
						<Dst:SMDateTimeBox id="bizDate" required="true"   width="100%" value="${model.bizDate}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">付款类型</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="payType"  required="true"  queryFieldItem="number,name" entityPath="com.dst.slms.base.entity.PayTypeInfo" width="100%" value="${model.payType}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">含税申请金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="taxReqAmt" required="true"  precision="2" width="100%" value="${model.taxReqAmt}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">税率(%)</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="taxRate" required="true"  onDataChange="rate_Change"  queryFieldItem="number,name" entityPath="com.dst.slms.base.entity.TaxRateInfo" width="100%" value="${model.taxRate}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">不含税申请金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="noTaxReqAmt" readonly="true"   precision="2" width="100%" value="${model.noTaxReqAmt}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">税额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="taxAmt" readonly="true"   precision="2" width="100%" value="${model.taxAmt}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">单据状态</label>
					<div class="dst-input-block">
						<Dst:SMEnumDicBox id="state"  readonly="true" dicGroupCode="BILLSTATUS" width="100%" value="${model.state}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">收款单位</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="supplier"  readonly="true" queryFieldItem="number,name" entityPath="com.dst.slms.supplierprofile.entity.SupplierProfileInfo" width="100%" value="${model.supplier}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">累计已到发票金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="ljfpAmt" readonly="true"  precision="2" width="100%" value="${model.ljfpAmt}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">项目累计当月已付金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="monAmt" readonly="true"  precision="2" width="100%" value="${model.monAmt}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm4">
					<label class="dst-form-label">累计已付金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="ljpayAmt" readonly="true"  precision="2" width="100%" value="${model.ljpayAmt}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">合同金额</label>
					<div class="dst-input-block">
						<Dst:SMNumberBox id="contractAmt" precision="2" width="100%" value="${model.contractAmt}"/>
					</div>
				</div>
				<div class="dst-col-sm4">
					<label class="dst-form-label">验收单</label>
					<div class="dst-input-block">
						<Dst:SMBizPromptBox id="receipt"  queryFieldItem="name,project.name" entityPath="com.dst.slms.contractmange.entity.ReceiptInfo" width="100%" value="${model.receipt}"/>
					</div>
				</div>
			</div>
			<div class="dst-row">
				<div class="dst-col-sm12">
					<label class="dst-form-label">备注</label>
					<div class="dst-input-block">
						<Dst:SMTextBox id="remake" validType="['maxLength[100]']" width="100%" value="${model.remake}"/>
					</div>
				</div>
			</div>
		</div>	
		<div style="padding-top: 10px"></div>
		<Dst:SMEDDatagrid entityPath="com.dst.slms.contractmange.entity.PaymentReqE1Info" style="width:100%;height:250px;" enableCellEdit="true" rownumbers="true" 
		ctrlSelect="true" title="发票明细页签" data="${model.paymentReqE1}" id="paymentReqE1" entry_editChange="entry_change" >
			<Dst:SMEDBillToolBar id="paymentReqE1tb">
				<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="parent" hidden="true" queryFieldItem="number,name" title="父对象关联" entityPath="com.dst.slms.contractmange.entity.PaymentReqInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnTextBox field="invoiceNum" required="true"   title="发票号码" width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnTextBox field="invoiceCode" required="true"   title="发票代码" width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnEnumDicBox field="invoiceType" required="true"   title="发票类型" dicGroupCode="invoiceType" width="100"></Dst:SMEDColumnEnumDicBox>
				<Dst:SMEDColumnDateTimeBox field="kpdate" required="true"   title="开票日期"></Dst:SMEDColumnDateTimeBox>
				<Dst:SMEDColumnTextBox field="name" title="货物或应税劳务，服务名称" width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnNumberBox field="noTaxConAmt" required="true"   title="不含税金额" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnBizPromptBox field="taxRate" required="true"   queryFieldItem="number,name,taxRate" title="税率(%)" entityPath="com.dst.slms.base.entity.TaxRateInfo"></Dst:SMEDColumnBizPromptBox>
				<Dst:SMEDColumnNumberBox field="taxAmt" readonly="true"   title="税额" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnNumberBox field="taxConAmt" readonly="true"  title="价税合计" precision="2"></Dst:SMEDColumnNumberBox>
				<Dst:SMEDColumnTextBox field="gfname" title="购方名称" width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnTextBox field="gfnumber" title="购方纳税人识别号" width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnTextBox field="xfname"  required="true"  title="销方名称" width="100"></Dst:SMEDColumnTextBox>
				<Dst:SMEDColumnTextBox field="xfnumber"  required="true"  title="消方纳税人识别号" width="100"></Dst:SMEDColumnTextBox>
			</Dst:SMEDColumnMoreHeaderGroup>
		</Dst:SMEDDatagrid>
	</Dst:SMForm>	
</Dst:SMMain>
</div>
</body>
