| | |
| | | <PropertyDef name="djsj"> |
| | | <Property></Property> |
| | | <Property name="label">登记时间</Property> |
| | | <Property name="dataType">DateTime</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zz"> |
| | | <Property></Property> |
| | |
| | | </DataType> |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <ClientEvent name="onReady">
 |
| | | edit = function(){
 |
| | | var dialog= view.get("#dialogMain1");
 |
| | | dialog.show();
 |
| | | }
 |
| | | 
 |
| | | 
 |
| | | save = function(){
 |
| | | var dialog= view.get("#dialogMain2");
 |
| | | var list = view.get("#dsMain.data:#").get("crkmx");
 |
| | | list.insert({});
 |
| | | dialog.show();
 |
| | | 
 |
| | | }</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | |
| | | <Property name="property">yscch</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">arg.dom.innerHTML="<a href='javascript:;' class ='btn-s-default' onClick='edit()'>详情</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class ='btn-s-warm' href='javascript:;' onClick='save()'>新增</a>";
 |
| | | arg.progressDefault= false;</ClientEvent> |
| | | <Property name="caption">操作</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Dialog id="dialogMain1"> |
| | | <Property name="width">85%</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="iconClass">fa fa-sliders</Property> |
| | | <Property name="height">80%</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | self.get("parent").hide();
 |
| | | if(cur) cur.cancel();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <Panel layout="regionPadding:5"> |
| | | <Property name="caption">出入库明细</Property> |
| | | <Property name="height">400</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <DataGrid id="dgCrkmx"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">#.crkmx</Property> |
| | | <DataColumn name="crkmxid"> |
| | | <Property name="property">crkmxid</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajbh"> |
| | | <Property name="property">ajbh</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajmc"> |
| | | <Property name="property">ajmc</Property> |
| | | </DataColumn> |
| | | <DataColumn name="hwbh"> |
| | | <Property name="property">hwbh</Property> |
| | | </DataColumn> |
| | | <DataColumn name="hwmc"> |
| | | <Property name="property">hwmc</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kctzbh"> |
| | | <Property name="property">kctzbh</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kctzcppcid"> |
| | | <Property name="property">kctzcppcid</Property> |
| | | </DataColumn> |
| | | <DataColumn name="psmxid"> |
| | | <Property name="property">psmxid</Property> |
| | | </DataColumn> |
| | | <DataColumn name="yjfamxid"> |
| | | <Property name="property">yjfamxid</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |
| | | <Tools/> |
| | | </Panel> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="width">85%</Property> |
| | | <Property name="closeable">false</Property> |
| | |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <Panel layout="regionPadding:5"> |
| | | <Property name="caption">盘点明细</Property> |
| | | <Property name="caption">质检报告文件</Property> |
| | | <Property name="height">400</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <Container layout="regionPadding:10"> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="text">菜单栏:</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var list = view.get("#dsMain.data:#").get("zjbgwj");
 |
| | | list.insert({});</ClientEvent> |
| | | <Property name="caption">新增</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dataGridDetail.currentEntity");
 |
| | | if(!data){
 |
| | | return;
 |
| | | }
 |
| | | data.remove();</ClientEvent> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid id="dataGridDetail"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">#.zjbgwj</Property> |
| | | <DataColumn name="jybgwjid"> |
| | | <Property name="property">jybgwjid</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jyrq"> |
| | | <Property name="property">jyrq</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jylx"> |
| | | <Property name="property">jylx</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjlx"> |
| | | <Property name="property">wjlx</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjm"> |
| | | <Property name="property">wjm</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjlj"> |
| | | <Property name="property">wjlj</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjdx"> |
| | | <Property name="property">wjdx</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |
| | | <Tools/> |
| | | </Panel> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogMain2"> |
| | | <Property name="width">85%</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="iconClass">fa fa-sliders</Property> |
| | | <Property name="caption">出入库明细</Property> |
| | | <Property name="height">80%</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | view.get("#updateSave").execute(function(){
 |
| | | self.get("parent").hide();
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | self.get("parent").hide();
 |
| | | if(cur) cur.cancel();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Panel> |
| | | <Panel layout="regionPadding:5"> |
| | | <Property name="caption">质检报告文件</Property> |
| | | <Property name="height">400</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <Container layout="regionPadding:10"> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="text">菜单栏:</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var list = view.get("#dsMain.data:#").get("zjbgwj");
 |
| | | list.insert({});</ClientEvent> |
| | | <Property name="caption">新增</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dataGridDetail.currentEntity");
 |
| | | if(!data){
 |
| | | return;
 |
| | | }
 |
| | | data.remove();</ClientEvent> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid id="dataGridDetail"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">#.zjbgwj</Property> |
| | | <DataColumn name="jybgwjid"> |
| | | <Property name="property">jybgwjid</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jyrq"> |
| | | <Property name="property">jyrq</Property> |
| | | </DataColumn> |
| | | <DataColumn name="jylx"> |
| | | <Property name="property">jylx</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjlx"> |
| | | <Property name="property">wjlx</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjm"> |
| | | <Property name="property">wjm</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjlj"> |
| | | <Property name="property">wjlj</Property> |
| | | </DataColumn> |
| | | <DataColumn name="wjdx"> |
| | | <Property name="property">wjdx</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |
| | | <Tools/> |
| | | </Panel> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |