123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache-Control" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title>表单详情</title>
- <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
- <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
- <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- <script>document.write("<link href='css/formlist.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
- </head>
- <body>
- <div class="sp-page" ng-controller="formlistAddCtrl as ctl" ng-cloak>
- <div class="loading" ng-if="ctl.loading">
- <div class="loading-msg">
- <h3>数据加载中,请等待</h3>
- <div class="spinner">
- <div class="bounce1"></div>
- <div class="bounce2"></div>
- <div class="bounce3"></div>
- </div>
- </div>
- </div>
- <div class="sp-detail-left">
- <div class="sp-msg-left-top"><i class="fa fa-th-large"></i> 表单设置</div>
- <div class="sp-page-pad">
- <div class="sp-msg-left-bottom">
- <div class="sp-lh-18 sp-color-gray">
- <span class="sp-col-40 sp-pad-0">表单标识:</span>
- <span class="sp-col-60 sp-pad-0" ng-bind="ctl.formsingle.CKEY"></span>
- </div>
- <div class="sp-lh-18 sp-color-gray">
- <span class="sp-col-40 sp-pad-0">表单名称:</span>
- <span class="sp-col-60 sp-pad-0" ng-bind="ctl.formsingle.CNAME"></span>
- </div>
- <div class="sp-lh-20 sp-text-right sp-mt-10 sp-mb-10">
- <span title="修改表单" ng-click="ctl.editBasicForm()" style="cursor: pointer; padding-right: 5px;">
- <i class="fa fa-edit sp-mr-5"></i>修 改
- </span>
- <span title="新建子表" ng-click="ctl.openAddSubLayer()" style="cursor: pointer; padding-right: 5px;">
- <i class="icon-plus sp-mr-5"></i>新 建
- </span>
- </div>
- <div class="sp-page" id="formAddPart" style="overflow: auto;">
- <div class="sp-msg-left-lh" ng-class="{'sp-msg-left-active':ctl.active.STATUS==$index}" ng-repeat="item in ctl.subFormData" ng-click="ctl.getMsgData($index,item)">
- <div class="sp-col-10"><i class="icon-folder"></i> </div>
- <div class="sp-col-70" ng-bind="item.CNAME"></div>
- <div class="sp-col-20 sp-text-right">
- <i class="fa fa-pencil" title="编辑" ng-click="ctl.editSubForm(item)"></i>
- <i class="fa fa-trash" ng-if="$index!=0" style="padding-right: 0;" title="删除" ng-click="ctl.delSubForm(item)"></i>
- </div>
- </div>
- <!-- <div class="sp-msg-left-lh" ng-click="ctl.getMsgData(1,0)">
- <div class="sp-col-10"><i class="icon-folder"></i> </div>
- <div class="sp-col-70">项目进展情况项目进展情况</div>
- <div class="sp-col-20 sp-text-right">
- <i class="fa fa-pencil" title="编辑" ng-click="ctl.editSubForm(1)"></i>
- <i class="fa fa-trash" style="padding-right: 0;" title="删除" ng-click="ctl.delSubForm(1)"></i>
- </div>
- </div> -->
- </div>
- </div>
- </div>
- </div>
- <div class="sp-detail-right">
- <div class="sp-page-mgn" style="margin: 0 0.7%">
- <div class="sp-page-pad">
- <div class="sp-page" id="div_fieldPart">
- <div class="sp-page">
- <div class="sp-page-col">
- <div class="sp-page-title">
- <span>表单详情</span>
- <!-- <span class="sp-page-back" ng-click="ctl.btnGoBack()"><i class="icon-back"></i> 返回上一级</span>-->
- </div>
- </div>
- <div class="sp-page-col sp-pull-right">
- <span class="sp-btn-blue-outline sp-btn-radius sp-btn-sm" ng-click="ctl.addFormField()"><i class="fa fa-plus sp-mr-5"></i>新 建</span>
- <span class="sp-btn-blue-outline sp-btn-radius sp-btn-sm" ng-click="ctl.previewForm()"><i class="fa fa-search-plus sp-mr-5"></i>预 览</span>
- <span class="sp-btn-blue-outline sp-btn-radius sp-btn-sm" ng-click="ctl.reBuildForm()"><i class="icon-folder-add sp-mr-5"></i>重建表单</span>
- <span class="sp-btn-blue-outline sp-btn-radius sp-btn-sm" ng-click="ctl.saveAs()"><i class="icon-check-1 sp-mr-5"></i>另存为</span>
- <span class="sp-btn-blue-outline sp-btn-radius sp-btn-sm" ng-click="ctl.btnGoBack()"><i class="fa fa-reply"></i> 返回</span>
- </div>
- </div>
- <div class="sp-line-gray"></div>
- <div class="sp-page" id="formTablePart" style="overflow-y: auto;">
- <table class="sp-table">
- <thead>
- <tr>
- <th style="width: 60px;">序号</th>
- <th>列名</th>
- <th>中文名</th>
- <th>数据类型</th>
- <th>宽度</th>
- <th>小数</th>
- <th>编辑类型</th>
- <th>初始值</th>
- <th>必需项</th>
- <th>数据子表</th>
- <th width="100">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="item in ctl.formFieldData">
- <td ng-bind="$index+1"></td>
- <td ng-bind="item.CODE"></td>
- <td ng-bind="item.CNAME"></td>
- <td ng-bind="item.CKIND"></td>
- <td ng-bind="item.CLENGTH"></td>
- <td ng-bind="item.DECI"></td>
- <td ng-bind="item.EKIND_set"></td>
- <td ng-bind="item.INITVAL_set"></td>
- <td ng-bind="item.ISMUST"></td>
- <td ng-bind="item.TCHILD"></td>
- <td style="width:80px;">
- <button ng-click="ctl.editFormField(item)" class="sp-new-logo-edit" ng-disabled="item.CREKIND=='SYS'" title="编辑"></button>
- <button ng-click="ctl.delFormField(item.COLID)" class="sp-new-logo-delete sp-ml-10" ng-disabled="item.CREKIND=='SYS'" title="删除"></button>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- 编辑基本表单 -->
- <div class="sp-layer" data-title="更新信息" id="layer_editBasicForm" style="width:500px;">
- <div class="sp-layer-body">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td>表单分类</td>
- <td>
- <select ng-model="ctl.form.formkinds">
- <option ng-repeat="item in ctl.optionFormkinds" value="{{item.PKID}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- </tr>
- <tr>
- <td style="width:100px;">表单标识</td>
- <td class="sp-text-left sp-indent-5" ng-bind="ctl.form.ckey"></td>
- </tr>
- <tr>
- <td>表单名称</td>
- <td><input type="text" class="sp-input" class="sp-input" ng-model="ctl.form.cname" sp-required /></td>
- </tr>
- <tr>
- <td>表单类型</td>
- <td>
- <select ng-model="ctl.form.ctype">
- <option ng-repeat="item in ctl.formTypeAray" value="{{item.cval}}" ng-bind="item.cname"></option>
- </select>
- </td>
- </tr>
- <tr>
- <td>表单简称</td>
- <td><input type="text" class="sp-input" ng-model="ctl.form.shortname" /></td>
- </tr>
- <tr>
- <td>描述</td>
- <td><input type="text" class="sp-input" ng-model="ctl.form.explain" /></td>
- </tr>
- </tbody>
- </table>
- <div class="sp-page sp-text-center sp-mt-20">
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.editBasicFormTrue()">
- <i class="fa fa-check sp-mr-5"></i>提 交</button>
- <button class="sp-btn-default sp-btn-radius" ng-click="ctl.editBasicFormCancel()">
- <i class="fa fa-close sp-mr-5"></i>取 消</button>
- </div>
- </div>
- </div>
- <!-- 新建、编辑子表 -->
- <div class="sp-layer" id="layer_addSubForm" ng-keydown="ctl.keyLogin(1)" style="width: 500px;">
- <div class="sp-layer-head">
- <div class="sp-page sp-text-center sp-font16">
- <span ng-bind="ctl.subForm.layertitle"></span>
- <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
- ×
- </div>
- </div>
- </div>
- <div class="sp-layer-body">
- <table class="sp-grid-job">
- <tbody>
- <tr ng-if="ctl.subForm.edit">
- <td style="width:100px;">子表标识</td>
- <td class="sp-text-left sp-indent-5" ng-bind="ctl.subForm.billkey"></td>
- </tr>
- <tr>
- <td>子表名称</td>
- <td><input type="text" class="sp-input" ng-model="ctl.subForm.cname" sp-required /></td>
- </tr>
- <tr>
- <td>子表类型</td>
- <td>
- <select ng-model="ctl.subForm.type">
- <option value="NORMAL">一般表</option>
- <option value="FILETBL">附件表</option>
- <option value="CODETBL">代码表</option>
- <option value="TREESTAL">树状表</option>
- </select>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-page sp-text-center sp-mt-20">
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.addSubFormTrue()">
- <i class="fa fa-check sp-mr-5"></i>提 交</button>
- <button class="sp-btn-default sp-btn-radius" ng-click="ctl.addSubFormCancel()">
- <i class="fa fa-close sp-mr-5"></i>取 消</button>
- </div>
- </div>
- </div>
- <!-- 新建、编辑列字段 -->
- <div class="sp-layer" id="layer_formField" ng-keydown="ctl.keyLogin(2)" style="width: 700px;">
- <div class="sp-layer-head">
- <div class="sp-page sp-text-center sp-font16">
- <span ng-bind="ctl.field.layertitle"></span>
- <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
- ×
- </div>
- </div>
- </div>
- <div class="sp-layer-body">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td style="width:100px;">列名</td>
- <td style="width: 240px;" colspan="2">
- <input type="text" class="sp-input" ng-model="ctl.field.code" sp-required />
- </td>
- <td style="width:100px;">中文名称</td>
- <td colspan="2">
- <input type="text" class="sp-input" ng-model="ctl.field.cname" sp-required />
- </td>
- </tr>
- <tr>
- <td>提示</td>
- <td colspan="5"><input type="text" class="sp-input" ng-model="ctl.field.coltips" /></td>
- </tr>
- <tr>
- <td>数据类型</td>
- <td style="width: 200px;">
- <select ng-model="ctl.field.ckind" ng-change="ctl.changeColumnType()">
- <option ng-repeat="item in ctl.columnType" value="{{item.cval}}" ng-bind="item.set_cname"></option>
- </select>
- </td>
- <td class="ng-hide" ng-show="ctl.field.ckind=='datetime'"></td>
- <td class="ng-hide" ng-show="ctl.field.ckind=='datetime'" style="width: 120px;"></td>
- <td class="ng-hide" ng-show="ctl.field.ckind!='datetime'">宽度</td>
- <td class="ng-hide" ng-show="ctl.field.ckind!='datetime'" style="width: 120px;"><input type="number" class="sp-input" ng-model="ctl.field.clength"/></td>
- <td class="ng-hide" ng-show="ctl.field.deci==0"></td>
- <td class="ng-hide" ng-show="ctl.field.deci==0" style="width: 120px;"></td>
- <td class="ng-hide" ng-show="ctl.field.deci!=0">小数</td>
- <td class="ng-hide" ng-show="ctl.field.deci!=0" style="width: 120px;"><input type="number" class="sp-input" ng-model="ctl.field.deci" /></td>
- </tr>
- <tr>
- <td>编辑类型</td>
- <td>
- <select ng-model="ctl.field.ekind" ng-change="ctl.changeControlType()">
- <option ng-repeat="item in ctl.controlType" value="{{item.cval}}" ng-bind="item.set_cname"></option>
- </select>
- </td>
- <td>初始值</td>
- <td>
- <select ng-model="ctl.field.initval" ng-change="ctl.changeInitValType()">
- <option ng-repeat="item in ctl.initValType" value="{{item.cval}}" ng-bind="item.cname"></option>
- </select>
- </td>
- <td>必需项</td>
- <td>
- <select ng-model="ctl.field.ismust">
- <option value="否">否</option>
- <option value="是">是</option>
- </select>
- </td>
- </tr>
- <tr>
- <td>显示格式</td>
- <td colspan="5"><input type="text" class="sp-input" ng-model="ctl.field.rowall" /></td>
- </tr>
- <tr>
- <td>函数设置</td>
- <td colspan="5">
- <input type="text" class="sp-input" ng-model="ctl.field.colfunc" />
- </td>
- </tr>
- <tr class="ng-hide" ng-show="ctl.field.ekind_select">
- <td colspan="6" class="sp-bg-gray">编辑类型设置</td>
- </tr>
- <tr class="ng-hide" ng-show="ctl.field.ekind_select">
- <td>数据子表</td>
- <td colspan="2">
- <select ng-model="ctl.field.tchild" ng-change="ctl.changeOptionEkind()">
- <option ng-repeat="item in ctl.optionEkind" value="{{item.BILLKEY}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- <td>数据列</td>
- <td colspan="2">
- <select ng-model="ctl.field.tdata">
- <option ng-repeat="item in ctl.optionEkindItem" value="{{item.CODE}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- </tr>
- <tr class="ng-hide" ng-show="ctl.field.ekind_select">
- <td>显示列</td>
- <td colspan="2">
- <select ng-model="ctl.field.tshow">
- <option ng-repeat="item in ctl.optionEkindItem" value="{{item.CODE}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- <td>子表条件</td>
- <td colspan="2">
- <input type="text" class="sp-input" ng-model="ctl.field.twhere"/>
- </td>
- </tr>
- <tr class="ng-hide" ng-show="ctl.field.initval_init">
- <td colspan="6" class="sp-bg-gray">初始值设置</td>
- </tr>
- <tr class="ng-hide" ng-show="ctl.field.initval_init">
- <td>来源表</td>
- <td colspan="2">
- <select ng-model="ctl.field.initable" ng-change="ctl.changeOptionInitval()">
- <option ng-repeat="item in ctl.optionInitval" value="{{item.BILLKEY}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- <td>来源列</td>
- <td colspan="2">
- <select ng-model="ctl.field.initcol">
- <option ng-repeat="item in ctl.optionInitvalItem" value="{{item.CODE}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- </tr>
- <tr class="ng-hide" ng-show="ctl.field.initval_init">
- <td>更新条件</td>
- <td colspan="2">
- <select ng-model="ctl.field.initc">
- <option value="0">按项目总编号更新</option>
- <option value="1">按申请编号更新</option>
- </select>
- </td>
- <td>更新模式</td>
- <td colspan="2">
- <select ng-model="ctl.field.initm">
- <option value="NEWITEM">最新一条</option>
- <option value="ALLITEM">全部记录</option>
- </select>
- </td>
- </tr>
- <tr class="ng-hide" ng-show="ctl.field.initval_auto">
- <td colspan="6" class="sp-bg-gray">自增编号设置</td>
- </tr>
- <tr class="ng-hide" ng-show="ctl.field.initval_auto">
- <td>前缀</td>
- <td>
- <select ng-model="ctl.field.codehead">
- <option ng-repeat="item in ctl.autoCodeHeadArray" value="{{item.cval}}" ng-bind="item.cname"></option>
- </select>
- </td>
- <td>中间字号</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.field.codebody" />
- </td>
- <td>结尾</td>
- <td>
- <input type="text" class="sp-input" ng-model="ctl.field.codetail" />
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-lh-18 sp-color-gray sp-mt-10 sp-indent-20">显示格式:例如 F5(小数点保留五位),yyyy-MM-dd(2012-10-03)</div>
- <div class="sp-lh-18 sp-color-gray sp-indent-20">函数设置:例如 onclick=openMain() | onchange=openEdit(this)</div>
- <div class="sp-page sp-text-center sp-mt-20">
- <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.addFormfieldTrue()">
- <i class="fa fa-check sp-mr-5"></i>提 交</button>
- <button class="sp-btn-default sp-btn-radius" ng-click="ctl.addFormfieldCancel()">
- <i class="fa fa-close sp-mr-5"></i>取 消</button>
- </div>
- </div>
- </div>
- <!-- 另存为 -->
- <div class="sp-layer" id="layer_saveAs" data-title="表单另存为" style="width:500px;">
- <div class="sp-layer-body">
- <table class="sp-grid-job">
- <tbody>
- <tr>
- <td style="width:120px;">新表单分类</td>
- <td>
- <select ng-model="ctl.other.newformkinds">
- <option ng-repeat="item in ctl.other.optionformkinds" value="{{item.PKID}}" ng-bind="item.CNAME"></option>
- </select>
- </td>
- </tr>
- <tr>
- <td>新表单标识</td>
- <td><input type="text" class="sp-input" ng-model="ctl.other.newckye" /></td>
- </tr>
- <tr>
- <td>新表单名称</td>
- <td><input type="text" class="sp-input" ng-model="ctl.other.newformname" /></td>
- </tr>
- <tr>
- <td>是否包含视图</td>
- <td>
- <select ng-model="ctl.other.includeformedit">
- <option value="0">否</option>
- <option value="1">是</option>
- </select>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="sp-page sp-text-center sp-mt-20">
- <button class="sp-btn-blue sp-btn-sm sp-btn-radius" ng-click="ctl.saveAsSubmit()">
- <i class="fa fa-check sp-mr-5"></i>提 交</button>
- <button class="sp-btn-default sp-btn-sm sp-btn-radius" onclick="sp.layerhide();">
- <i class="fa fa-close sp-mr-5"></i>取 消</button>
- </div>
- </div>
- </div>
- </div>
- <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
- <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
- <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
- <script src="../../apiurljs.js"></script>
- <script src="../../js/sm4.js"></script>
- <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
- <script>document.write('<scri' + 'pt src="js/formlist-add.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
- <script src="../../AFrontEnd/js/special/spng.js"></script>
- <script src="../../AFrontEnd/js/special/spngvld.js"></script>
- </body>
- </html>
|