| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.work.domain.WorkOrder</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">å·¥åID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="title"> |
| | | <Property></Property> |
| | | <Property name="label">å·¥ååç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="description"> |
| | | <Property></Property> |
| | | <Property name="label">å·¥åæè¿°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bizType"> |
| | | <Property></Property> |
| | | <Property name="label">ä¸å¡åç±»</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="category"> |
| | | <Property></Property> |
| | | <Property name="label">å·¥ååç±»</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="status"> |
| | | <Property></Property> |
| | | <Property name="label">å·¥åç¶æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="assigneeId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="assigneeName"> |
| | | <Property></Property> |
| | | <Property name="label">å½åå¤ç人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="receiveTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">å½åç¯èæ¥æ¶æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">å·¥åå建æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createUserId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createUserName"> |
| | | <Property></Property> |
| | | <Property name="label">å·¥åå建人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="businessId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="businessUrl"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨è¯´æ</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtParam"> |
| | | <Property name="creationType">com.fzzy.work.data.WorkOrderParam</Property> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±åºåº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property></Property> |
| | | <Property name="label">å·¥ååç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="status"> |
| | | <Property></Property> |
| | | <Property name="label">å·¥åç¶æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="start"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å¼å§æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">æªæ¢æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">query = function(){
 |
| | | view.get("#dsQuery").flushAsync();
 |
| | | };
 |
| | | query();
 |
| | | 
 |
| | | 
 |
| | | //å®£ä¼ æä½
 |
| | | renderCell1 = function(arg,self){
 |
| | | var data = arg.data;
 |
| | | var htm = "<a onClick='audit()' class='a-btn1'>审æ¹</a>&nbsp;|&nbsp;<a onClick='showDetail()' class='a-btn2'>详ç»</a>";
 |
| | | arg.dom.innerHTML = htm;
 |
| | | };
 |
| | | 
 |
| | | renderStatus = function(arg){
 |
| | | var txt = arg.data.getText("auditStatus");
 |
| | | if(!txt) return true;
 |
| | | var htm = "<span class='s2'>"+txt+"</span>";
 |
| | | if(txt.includes("éå")){
 |
| | | htm = "<span class='s3'>"+txt+"</span>";
 |
| | | }
 |
| | | if(txt.includes("æç»")){
 |
| | | htm = "<span class='s3'>"+txt+"</span>";
 |
| | | }
 |
| | | if(txt.includes("éè¿")){
 |
| | | htm = "<span class='s1'>"+txt+"</span>";
 |
| | | }
 |
| | | arg.dom.innerHTML = htm;
 |
| | | }
 |
| | | 
 |
| | | //ç¹å»å®¡æ ¸
 |
| | | audit = function(){
 |
| | | 
 |
| | | }
 |
| | | //ç¹å»è¯¦ç»
 |
| | | showDetail = function(){
 |
| | | 
 |
| | | }</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">workOrderPR#pageQuery</Property> |
| | | <Property name="pageSize">15</Property> |
| | | <Property name="loadMode">lazy</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <ClientEvent name="onReady">self.insert({});
 |
| | | </ClientEvent> |
| | | <Property name="dataType">[dtParam]</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</Property> |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">status</Property> |
| | | <Property name="property">status</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">end</Property> |
| | | <Property name="property">end</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsQuery.data");
 |
| | | if(data){
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();
 |
| | | }else{
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | }</ClientEvent> |
| | | <Property name="caption">æç´¢</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="exClassName">btn-q1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsQuery").flushAsync();</ClientEvent> |
| | | <Property name="caption">éç½®</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </Button> |
| | | </AutoForm> |
| | | </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="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn> |
| | | <Property name="width">50</Property> |
| | | <Property name="caption">åºå·</Property> |
| | | </RowNumColumn> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | </DataColumn> |
| | | <DataColumn name="title"> |
| | | <Property name="property">title</Property> |
| | | </DataColumn> |
| | | <DataColumn name="description"> |
| | | <Property name="property">description</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bizType"> |
| | | <Property name="property">bizType</Property> |
| | | </DataColumn> |
| | | <DataColumn name="category"> |
| | | <Property name="property">category</Property> |
| | | </DataColumn> |
| | | <DataColumn name="assigneeName"> |
| | | <Property name="property">assigneeName</Property> |
| | | </DataColumn> |
| | | <DataColumn name="receiveTime"> |
| | | <Property name="property">receiveTime</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createUserName"> |
| | | <Property name="property">createUserName</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createTime"> |
| | | <Property name="property">createTime</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderStatus(arg);</ClientEvent> |
| | | <Property name="property">status</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">status</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">renderCell1(arg,self);</ClientEvent> |
| | | <Property name="caption">æä½</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | <Dialog id="dialogMain" layout="regionPadding:8"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">å
¥åºéç¥å</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> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <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> |
| | | <Container> |
| | | <AutoForm layoutConstraint="top "> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Property name="cols">210,*,210</Property> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Property name="className">f-title</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">id</Property> |
| | | <Property name="property">id</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">type</Property> |
| | | <Property name="property">type</Property> |
| | | <Property name="editorType">RadioGroup</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">year</Property> |
| | | <Property name="property">year</Property> |
| | | <Property name="trigger">defaultYearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">customerName</Property> |
| | | <Property name="property">customerName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">unitName</Property> |
| | | <Property name="property">unitName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">targetNumber</Property> |
| | | <Property name="property">targetNumber</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">completeNumber</Property> |
| | | <Property name="property">completeNumber</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">completeStatus</Property> |
| | | <Property name="property">completeStatus</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="property">completeTime</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createBy</Property> |
| | | <Property name="property">createBy</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">auditStatus</Property> |
| | | <Property name="property">auditStatus</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">contract</Property> |
| | | <Property name="property">contract</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | </Property> |
| | | <Property name="text">注ï¼ç管éç¥åï¼å¯å¡«åè´¨æ¼åååç§°</Property> |
| | | </Label> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">auditUser</Property> |
| | | <Property name="property">auditUser</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">auditDate</Property> |
| | | <Property name="property">auditDate</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <HtmlContainer layoutConstraint="colSpan:3"> |
| | | <Property name="content">1.å
¥åºéç¥åä½ä¸ºå
¥åºä½ä¸çåç½®æ¡ä»¶ï¼å¿
é¡»é
ç½®ï¼å¦åæ æ³è¿è¡å
¥åºä½ä¸ã<br>
 |
| | | 2.åæ®ç±»å=åºåºéç¥åï¼è¡¨ç¤ºåºåºèªå·±ä½ä¸ä¸å¡ï¼ä¸åç管管çã</Property> |
| | | <Property name="exClassName">h-tip</Property> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | </HtmlContainer> |
| | | </AutoForm> |
| | | </Container> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="updateSave"> |
| | | <UpdateItem> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="confirmMessage">ç¡®å®è¦æ§è¡å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |