YYC
2023-07-26 306e2714266cef35638514f05cf4f643857608d9
igds-recir/src/main/java/com/ld/igds/drug/view/Drug.view.xml
@@ -21,6 +21,7 @@
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert({});&#xD;
view.get(&quot;#id&quot;).set(&quot;readOnly&quot;,false);&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="caption">新增</Property>
        <Property name="exClassName">btn-default</Property>
@@ -29,6 +30,7 @@
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
   view.get(&quot;#id&quot;).set(&quot;readOnly&quot;,true);&#xD;
   view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="caption">编辑</Property>
@@ -61,43 +63,57 @@
      </TextEditor>
      <Trigger id="triggerQuery">
        <ClientEvent name="onExecute">var name = view.get(&quot;#paramName.text&quot;);&#xD;
if(null != name &amp;&amp; &quot;&quot;!= name){&#xD;
   view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{name:name}).flushAsync();&#xD;
}</ClientEvent>
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{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(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
   view.get(&quot;#id&quot;).set(&quot;readOnly&quot;,true);&#xD;
   view.get(&quot;#dialogMain&quot;).show();&#xD;
}</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>
@@ -111,7 +127,8 @@
    <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(&quot;#dsMain.data:#&quot;);&#xD;
@@ -120,7 +137,6 @@
   $notify(&quot;数据校验失败!!&quot;);&#xD;
   return;&#xD;
}&#xD;
&#xD;
view.get(&quot;#ajaxSave&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
   if(result){&#xD;
      $alert(result);&#xD;
@@ -128,6 +144,7 @@
   }&#xD;
   $notify(&quot;数据执行完成!!&quot;);&#xD;
   self.get(&quot;parent&quot;).hide();&#xD;
   view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{}).flushAsync();&#xD;
});</ClientEvent>
          <Property name="caption">确定</Property>
          <Property name="iconClass">fa fa-check</Property>
@@ -140,49 +157,136 @@
        </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>
@@ -191,7 +295,7 @@
      <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>