| | |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <ClientEvent name="onDataChange">if(arg.property =="depotId"){
 |
| | | autoByDepot(arg.newValue);
 |
| | | }
</ClientEvent> |
| | | <Property name="creationType">com.fzzy.igds.domain.InoutRecord</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | |
| | | </PropertyDef> |
| | | <PropertyDef name="settleWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">结算净重</Property> |
| | | <Property name="label">结算重量</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">0.0 KG</Property> |
| | | </PropertyDef> |
| | |
| | | <PropertyDef name="remarks"> |
| | | <Property></Property> |
| | | <Property name="label">备注信息</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateLog"> |
| | | <Property></Property> |
| | | <Property name="label">修改记录</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | |
| | | view.get("#btnDel").set("visible",false);
 |
| | | }
 |
| | | 
 |
| | | if("OUT" == TYPE){
 |
| | | view.get("#recordWeight").set("caption","出库重量");
 |
| | | }else{
 |
| | | view.get("#recordWeight").set("caption","入库重量");
 |
| | | }
 |
| | | 
 |
| | | //默认查询查询提条件
 |
| | | view.get("#dsQuery").insert({
 |
| | |
| | | }else{
 |
| | | $notify("请选择数据……");
 |
| | | }
 |
| | | };
 |
| | | 
 |
| | | //根据仓库自动回填粮食品种,登记,产地新
 |
| | | autoByDepot = function(depotId){
 |
| | | view.get("#ajaxGetDepot").set("parameter",depotId).execute(function(result){
 |
| | | if(result){
 |
| | | var data = view.get("#dataGridMain").get("selection");
 |
| | | data.set("foodVariety",result.foodVariety);
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //异常执行
 |
| | |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn id="recordWeight"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="visible">true</Property> |
| | | <Property name="name">recordWeight</Property> |
| | | </DataColumn> |
| | | <DataColumn name="progress"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">recordWeight</Property> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">updateLog</Property> |
| | | <Property name="property">updateLog</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | |
| | | <Property name="service">inoutDataPR#analysisExcel</Property> |
| | | <Property name="executingMessage">正在执行解析……</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetDepot"> |
| | | <Property name="service">depotPR#getDepot</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |