| | |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsMain").insert({});
 |
| | | view.get("#id").set("readOnly",false);
 |
| | | view.get("#dialogMain").show();</ClientEvent> |
| | | <Property name="caption">新增</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | | view.get("#id").set("readOnly",true);
 |
| | | view.get("#dialogMain").show();
 |
| | | }</ClientEvent> |
| | | <Property name="caption">编辑</Property> |
| | |
| | | </TextEditor> |
| | | <Trigger id="triggerQuery"> |
| | | <ClientEvent name="onExecute">var name = view.get("#paramName.text");
 |
| | | if(null != name && ""!= name){
 |
| | | view.get("#dsMain").set("parameter",{name:name}).flushAsync();
 |
| | | }</ClientEvent> |
| | | view.get("#dsMain").set("parameter",{name:name}).flushAsync();</ClientEvent> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Trigger> |
| | | </Container> |
| | | <Container layoutConstraint="center"> |
| | | <Container layout="regionPadding:10" layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | | view.get("#id").set("readOnly",true);
 |
| | | view.get("#dialogMain").show();
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="highlightCurrentRow">false</Property> |
| | | <Property name="highlightCurrentRow">true</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="count"> |
| | | <Property name="property">count</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="dosage"> |
| | | <Property name="property">dosage</Property> |
| | | <DataColumn name="kcsldw"> |
| | | <Property name="property">kcsldw</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="spec"> |
| | | <Property name="property">spec</Property> |
| | | <DataColumn name="sccj"> |
| | | <Property name="property">sccj</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="cctj"> |
| | | <Property name="property">cctj</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ccdd"> |
| | | <Property name="property">ccdd</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bzq"> |
| | | <Property name="property">bzq</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="updateUser"> |
| | | <Property name="property">updateUser</Property> |
| | | </DataColumn> |
| | | <DataColumn name="updateTime"> |
| | | <Property name="property">updateTime</Property> |
| | | </DataColumn> |
| | | <DataColumn name="remarks"> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | |
| | | <Dialog id="dialogMain"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">数据信息</Property> |
| | | <Property name="width">60%</Property> |
| | | <Property name="width">85%</Property> |
| | | <Property name="shadowMode">none</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | |
| | | $notify("数据校验失败!!");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | view.get("#ajaxSave").set("parameter",data).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | |
| | | }
 |
| | | $notify("数据执行完成!!");
 |
| | | self.get("parent").hide();
 |
| | | view.get("#dsMain").set("parameter",{}).flushAsync();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">count</Property> |
| | | <Property name="property">count</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dosage</Property> |
| | | <Property name="property">dosage</Property> |
| | | <Property name="trigger">listDosage</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">spec</Property> |
| | | <Property name="property">spec</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateUser</Property> |
| | | <Property name="property">updateUser</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="property">updateTime</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <Container layout="regionPadding:5"> |
| | | <FieldSet> |
| | | <Property name="caption">药剂信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <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 id="id"> |
| | | <Property name="name">id</Property> |
| | | <Property name="property">id</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- 手动填写或系统自动生成 --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">count</Property> |
| | | <Property name="property">count</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kcsldw</Property> |
| | | <Property name="property">kcsldw</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dosage</Property> |
| | | <Property name="property">dosage</Property> |
| | | <Property name="trigger">listDosage</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">cgrq</Property> |
| | | <Property name="property">cgrq</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bzw</Property> |
| | | <Property name="property">bzw</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">ggxh</Property> |
| | | <Property name="property">ggxh</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">--例如:100mg/粒;10g/片等--</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sccj</Property> |
| | | <Property name="property">sccj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">cgly</Property> |
| | | <Property name="property">cgly</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">cctj</Property> |
| | | <Property name="property">cctj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">ccdd</Property> |
| | | <Property name="property">ccdd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bzq</Property> |
| | | <Property name="property">bzq</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateUser</Property> |
| | | <Property name="property">updateUser</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="property">updateTime</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">bzwclfs</Property> |
| | | <Property name="property">bzwclfs</Property> |
| | | <Property name="editorType">TextEditor</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">czclfs</Property> |
| | | <Property name="property">czclfs</Property> |
| | | <Property name="editorType">TextEditor</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">aqsysms</Property> |
| | | <Property name="property">aqsysms</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Container> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | |
| | | <Property name="autoOpen">true</Property> |
| | | </ListDropDown> |
| | | <AjaxAction id="ajaxSave"> |
| | | <Property name="service">drugPR#updateDrug</Property> |
| | | <Property name="service">drugPR#saveDrug</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">drugPR#delDrug</Property> |