| | |
| | | <DataType name="dtMain" parent="dtNoticeIn"/> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">var deptId = window.parent.deptId;//父页面中的分库编码
 |
| | | var TYPE = "NOTICE_IN";
 |
| | | query = function(){
 |
| | | view.get("#dsQuery").set("parameter",{deptId:deptId}).flushAsync();
 |
| | | <ClientEvent name="onReady">query = function(){
 |
| | | var param = view.get("#dsQuery.data");
 |
| | | view.get("#dsMain").set("parameter",param).flushAsync();
 |
| | | };
 |
| | | query();
 |
| | | 
 |
| | | 
 |
| | | //宣传操作
 |
| | |
| | | 
 |
| | | //点击审核
 |
| | | audit = function(){
 |
| | | 
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | var url ="com.fzzy.work.WorkOrder.d?businessId="+cur.get("id");
 |
| | | $openTab("工单管理",url);
 |
| | | }
 |
| | | //点击详细
 |
| | | showDetail = function(){
 |
| | | 
 |
| | | view.get("#dialogMain").show();
 |
| | | }
 |
| | | //点击打印
 |
| | | print = function(){
 |
| | | $alert("未获取到打印模板……");
 |
| | | }</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <Property name="dataProvider">inoutNoticePR#getYearQuery</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | <Property name="dataType">dtNoticeParam</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</Property> |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,90,90,*</Property> |
| | | <Property name="cols">*,*,*,90,90,90</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | |
| | | </Container> |
| | | <Container> |
| | | <Property name="className">c-data</Property> |
| | | <ToolBar> |
| | | <ToolBarButton layoutConstraint="left"> |
| | | <Property name="caption">导出EXCEL</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dataGridMain" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridMain").set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | |
| | | <Property name="width">1200</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">view.get("#updateSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }
 |
| | | $notify("数据执行完成!!");
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">保存</Property> |
| | | <Button> |
| | | <ClientEvent name="onClick">autid();</ClientEvent> |
| | | <Property name="caption">审批</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">print();</ClientEvent> |
| | | <Property name="caption">打印</Property> |
| | | <Property name="iconClass">fa fa-file-word-o</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="caption">关闭</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |