| | |
| | | <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> |
| | |
| | | }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="service">inoutDataPR#analysisExcel</Property> |
| | | <Property name="executingMessage">正在执行解析……</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetDepot"> |
| | | <Property name="service">depotPR#getDepot</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |