sunny.qiao 1 жил өмнө
parent
commit
d2df3e6f14

+ 71 - 69
FMS24/Web/AppFms/Bd/frmBdServiceKmList.aspx

@@ -1,6 +1,6 @@
 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmBdServiceKmList.aspx.cs" Inherits="AppFms_Bd_frmBdServiceKmList" %>
 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmBdServiceKmList.aspx.cs" Inherits="AppFms_Bd_frmBdServiceKmList" %>
 
 
-<%@ Register Src="ascxEditKm.ascx" TagPrefix="uc1" TagName="ascxEdit" %>
+<%@ Register Src="ascxEditKm.ascx" TagPrefix="uc1" TagName="ascxEditKm" %>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
 
 <html xmlns="http://www.w3.org/1999/xhtml">
 <html xmlns="http://www.w3.org/1999/xhtml">
@@ -125,22 +125,22 @@
             //if (parentNode.children) {
             //if (parentNode.children) {
             //    var seq = parentNode.children.length * 10;
             //    var seq = parentNode.children.length * 10;
             //    seq += 10;
             //    seq += 10;
-            //    $("#ascxEdit_txtSEQ").val(seq);
+            //    $("#ascxEditKm_txtSEQ").val(seq);
             //}
             //}
             //else {
             //else {
-            //    $("#ascxEdit_txtSEQ").val(10);
+            //    $("#ascxEditKm_txtSEQ").val(10);
             //}
             //}
 
 
             if (node.ownerid == "") {
             if (node.ownerid == "") {
-                $("#ascxEdit_txtOwnerId").val(node.id);
-                $("#ascxEdit_txtOWNED_SERVICE").val(node.text);
-                $("#ascxEdit_txtMemo").val(node.memo);
+                $("#ascxEditKm_txtOwnerId").val(node.id);
+                $("#ascxEditKm_txtOWNED_SERVICE").val(node.text);
+                $("#ascxEditKm_txtMemo").val(node.memo);
             }
             }
             else {
             else {
-                $("#ascxEdit_txtOwnerId").val(node.ownerid);
-                $("#ascxEdit_txtOWNED_SERVICE").val(node.ownername);
-                //$("#ascxEdit_txtParentName").val(node.text);
-                $("#ascxEdit_txtMemo").val(node.memo);
+                $("#ascxEditKm_txtOwnerId").val(node.ownerid);
+                $("#ascxEditKm_txtOWNED_SERVICE").val(node.ownername);
+                //$("#ascxEditKm_txtParentName").val(node.text);
+                $("#ascxEditKm_txtMemo").val(node.memo);
             }
             }
 
 
             //showOpType("NA");
             //showOpType("NA");
@@ -166,7 +166,7 @@
         }
         }
 
 
         function resetParentSEQ() {
         function resetParentSEQ() {
-            var functionId = $("#ascxEdit_txtPARENTID").val();
+            var functionId = $("#ascxEditKm_txtPARENTID").val();
 
 
             var data = { functionId: functionId };
             var data = { functionId: functionId };
 
 
@@ -181,7 +181,7 @@
         }
         }
 
 
         function deleteIt() {
         function deleteIt() {
-            var editId = $("#ascxEdit_txtGUID").val();
+            var editId = $("#ascxEditKm_txtGUID").val();
 
 
             if (editId == "") {
             if (editId == "") {
                 msg.error("删除失败,没有选择要删除的节点");
                 msg.error("删除失败,没有选择要删除的节点");
@@ -247,26 +247,27 @@
         }
         }
 
 
         function load(id) {
         function load(id) {
+            
             $(".function-edit").show();
             $(".function-edit").show();
 
 
-            $("#ascxEdit_txtFLAG").val("Edit");
+            $("#ascxEditKm_txtFLAG").val("Edit");
 
 
             eci.post("frmBdServiceKmData.aspx", "LoadRecord", { id: id }, function (res) {
             eci.post("frmBdServiceKmData.aspx", "LoadRecord", { id: id }, function (res) {
                 if (res.success) {
                 if (res.success) {
-                    $("#ascxEdit_txtGroup").val(res.group_code + "|" + res.group_name);
-                    $("#ascxEdit_txtOWNED_SERVICE").val(res.ownername);
-                    //$("#ascxEdit_txtParentName").val(res.parentname);
-                    $("#ascxEdit_txtMemo").val(res.memo);
-                    $("#ascxEdit_txtCODE").val(res.code);
-                    $("#ascxEdit_txtNAME").val(res.name);
-                    $("#ascxEdit_txtGUID").val(res.guid);
-                    $("#ascxEdit_txtPARENTID").val(res.parentid);
-                    $("#ascxEdit_cboGlms").val(res.GLMS);
-                    $("#ascxEdit_txtFzzsz").val(res.FZZSZ);
-                    $("#ascxEdit_txtStatus").val(res.STATUS);
-                    $("#ascxEdit_txtReamrk").val(res.reamrk);
-                    $("#ascxEdit_txtUpdateUserName").val(res.update_user_name);
-                    $("#ascxEdit_txtUpdateDate").val(res.update_date);
+                    $("#ascxEditKm_txtGroup").val(res.group_code + "|" + res.group_name);
+                    $("#ascxEditKm_txtOWNED_SERVICE").val(res.ownername);
+                    //$("#ascxEditKm_txtParentName").val(res.parentname);
+                    $("#ascxEditKm_txtMemo").val(res.memo);
+                    $("#ascxEditKm_txtCODE").val(res.code);
+                    $("#ascxEditKm_txtNAME").val(res.name);
+                    $("#ascxEditKm_txtGUID").val(res.guid);
+                    $("#ascxEditKm_txtPARENTID").val(res.parentid);
+                    $("#ascxEditKm_cboGlms").val(res.glms);
+                    $("#ascxEditKm_txtFzzsz").val(res.fzzsz);
+                    $("#ascxEditKm_txtStatus").val(res.status);
+                    $("#ascxEditKm_txtReamrk").val(res.reamrk);
+                    $("#ascxEditKm_txtUpdateUserName").val(res.update_user_name);
+                    $("#ascxEditKm_txtUpdateDate").val(res.update_date);
 
 
                     if (res.ownerid == "") {
                     if (res.ownerid == "") {
                         $("#btnDeleteIt").hide();
                         $("#btnDeleteIt").hide();
@@ -282,13 +283,13 @@
 
 
 
 
                     if (res.status == "Y") {
                     if (res.status == "Y") {
-                        $("#ascxEdit_txtCODE").attr("readonly", "true");
-                        $("#ascxEdit_txtCODE").addClass("text-disabled");
+                        $("#ascxEditKm_txtCODE").attr("readonly", "true");
+                        $("#ascxEditKm_txtCODE").addClass("text-disabled");
                         $("#btnDeleteIt").hide();
                         $("#btnDeleteIt").hide();
                     }
                     }
                     else {
                     else {
-                        $("#ascxEdit_txtCODE").removeAttr("readonly");
-                        $("#ascxEdit_txtCODE").removeClass("text-disabled");
+                        $("#ascxEditKm_txtCODE").removeAttr("readonly");
+                        $("#ascxEditKm_txtCODE").removeClass("text-disabled");
                     }
                     }
                 }
                 }
                 else {
                 else {
@@ -299,18 +300,18 @@
 
 
         function save() {
         function save() {
             var data = {};
             var data = {};
-            data.GUID = $("#ascxEdit_txtGUID").val();
-            data.NAME = $("#ascxEdit_txtNAME").val();
-            data.CODE = $("#ascxEdit_txtCODE").val();
-            data.PARENTID = $("#ascxEdit_txtPARENTID").val();
-            data.OWNED_SERVICE = $("#ascxEdit_txtOwnerId").val();
-            data.FLAG = $("#ascxEdit_txtFLAG").val();
-            data.OWNERNAME = $("#ascxEdit_txtOWNED_SERVICE").val();
-            data.MEMO = $("#ascxEdit_txtMemo").val();
-            data.GLMS = $("#ascxEdit_cboGlms").val();
-            data.FZZSZ = $("#ascxEdit_txtFzzsz").val();
-            data.STATUS = $("#ascxEdit_txtStatus").val();
-            data.REAMRK = $("#ascxEdit_txtReamrk").val();
+            data.GUID = $("#ascxEditKm_txtGUID").val();
+            data.NAME = $("#ascxEditKm_txtNAME").val();
+            data.CODE = $("#ascxEditKm_txtCODE").val();
+            data.PARENTID = $("#ascxEditKm_txtPARENTID").val();
+            data.OWNED_SERVICE = $("#ascxEditKm_txtOwnerId").val();
+            data.FLAG = $("#ascxEditKm_txtFLAG").val();
+            data.OWNERNAME = $("#ascxEditKm_txtOWNED_SERVICE").val();
+            data.MEMO = $("#ascxEditKm_txtMemo").val();
+            data.GLMS = $("#ascxEditKm_cboGlms").val();
+            data.FZZSZ = $("#ascxEditKm_txtFzzsz").val();
+            data.STATUS = $("#ascxEditKm_txtStatus").val();
+            data.REAMRK = $("#ascxEditKm_txtReamrk").val();
 
 
             if (data.ID == "" && !data.PARENTID) {
             if (data.ID == "" && !data.PARENTID) {
                 msg.warning("保存异常,没有选择上级节点");
                 msg.warning("保存异常,没有选择上级节点");
@@ -342,7 +343,7 @@
                             }]
                             }]
                         });
                         });
 
 
-                        $("#ascxEdit_txtFLAG").val("Edit");
+                        $("#ascxEditKm_txtFLAG").val("Edit");
 
 
                         $("#tt").tree("getChildren", parentNode);
                         $("#tt").tree("getChildren", parentNode);
                         editNode = parentNode.children[parentNode.children.length - 1];
                         editNode = parentNode.children[parentNode.children.length - 1];
@@ -359,13 +360,13 @@
                     $("#btnAdd").show();
                     $("#btnAdd").show();
 
 
                     if (data.STATUS == "Y") {
                     if (data.STATUS == "Y") {
-                        $("#ascxEdit_txtCODE").attr("readonly", "true");
-                        $("#ascxEdit_txtCODE").addClass("text-disabled");
+                        $("#ascxEditKm_txtCODE").attr("readonly", "true");
+                        $("#ascxEditKm_txtCODE").addClass("text-disabled");
                         $("#btnDeleteIt").hide();
                         $("#btnDeleteIt").hide();
                     }
                     }
                     else {
                     else {
-                        $("#ascxEdit_txtCODE").removeAttr("readonly");
-                        $("#ascxEdit_txtCODE").removeClass("text-disabled");
+                        $("#ascxEditKm_txtCODE").removeAttr("readonly");
+                        $("#ascxEditKm_txtCODE").removeClass("text-disabled");
                     }
                     }
 
 
                     msg.alert("保存成功");
                     msg.alert("保存成功");
@@ -381,33 +382,34 @@
             $("#divEdit").show();
             $("#divEdit").show();
             var guid = eci.guid();
             var guid = eci.guid();
 
 
-            $("#ascxEdit_txtGUID").val(guid);
-            $("#ascxEdit_txtFLAG").val("Add");
-            $("#ascxEdit_txtNAME").val("");
-            $("#ascxEdit_txtCODE").val("");
-            //$("#ascxEdit_txtParentName").val("");
-            $("#ascxEdit_txtMemo").val("");
-            $("#ascxEdit_txtPARENTID").val(parentId);
-            //$("#ascxEdit_txtStatus option:first").attr("selected", true);
-            //$("#ascxEdit_cboSelectType option:first").attr("selected", true);
-            //$("#ascxEdit_txtSysCode").val("");
-            $("#ascxEdit_cboGlms option:first").attr("selected", true);
-            $("#ascxEdit_txtFzzsz option:first").attr("selected", true);
-            $("#ascxEdit_txtStatus option:first").attr("selected", true);
-            $("#ascxEdit_txtReamrk").val("");
-
-            $("#ascxEdit_txtCODE").focus();
+            $("#ascxEditKm_txtGUID").val(guid);
+            $("#ascxEditKm_txtFLAG").val("Add");
+            $("#ascxEditKm_txtNAME").val("");
+            $("#ascxEditKm_txtCODE").val("");
+            //$("#ascxEditKm_txtParentName").val("");
+            $("#ascxEditKm_txtMemo").val("");
+            $("#ascxEditKm_txtPARENTID").val(parentId);
+            //$("#ascxEditKm_txtStatus option:first").attr("selected", true);
+            //$("#ascxEditKm_cboSelectType option:first").attr("selected", true);
+            //$("#ascxEditKm_txtSysCode").val("");
+            $("#ascxEditKm_cboGlms option:first").attr("selected", true);
+            $("#ascxEditKm_txtFzzsz option:first").attr("selected", true);
+            $("#ascxEditKm_txtStatus option:first").attr("selected", true);
+            $("#ascxEditKm_txtReamrk").val("");
+
+            $("#ascxEditKm_txtCODE").focus();
 
 
             $("#btnDeleteIt").hide();
             $("#btnDeleteIt").hide();
             $("#btnAdd").hide();
             $("#btnAdd").hide();
             $("#btnSave").show();
             $("#btnSave").show();
 
 
-            $("#ascxEdit_txtCODE").removeAttr("readonly");
-            $("#ascxEdit_txtCODE").removeClass("text-disabled");
+            $("#ascxEditKm_txtCODE").removeAttr("readonly");
+            $("#ascxEditKm_txtCODE").removeClass("text-disabled");
         }
         }
 
 
 
 
         $(function () {
         $(function () {
+            
             $(".function-edit").hide();
             $(".function-edit").hide();
 
 
             $('#tt').tree({
             $('#tt').tree({
@@ -537,7 +539,7 @@
                         <td class="function-edit" style="height: 100%;">
                         <td class="function-edit" style="height: 100%;">
                             <div style="margin: 0px; border-bottom: 1px solid #95B8E7; border-right: 1px solid #95B8E7; overflow-y: auto; vertical-align: top;">
                             <div style="margin: 0px; border-bottom: 1px solid #95B8E7; border-right: 1px solid #95B8E7; overflow-y: auto; vertical-align: top;">
                                 <div class="pagetitle">服务类别</div>
                                 <div class="pagetitle">服务类别</div>
-                                <uc1:ascxEdit runat="server" ID="ascxEdit" />
+                                <uc1:ascxEditKm runat="server" ID="ascxEditKm" />
                                 <div style="margin: 2px;"></div>
                                 <div style="margin: 2px;"></div>
                             </div>
                             </div>
                             <div style="border-right: 1px solid #95B8E7;" class="fitH" layout="148">
                             <div style="border-right: 1px solid #95B8E7;" class="fitH" layout="148">
@@ -558,8 +560,8 @@
                 <div onclick="removeit()" data-options="iconCls:'icon-remove'">删 除</div>
                 <div onclick="removeit()" data-options="iconCls:'icon-remove'">删 除</div>
 
 
 
 
-                <div class="menu-sep"></div>
-                <div onclick="resetSEQ()">重置顺序</div>
+                <%--<div class="menu-sep"></div>--%>
+                <%--<div onclick="resetSEQ()">重置顺序</div>--%>
             </div>
             </div>
         </div>
         </div>
     </form>
     </form>

+ 1 - 1
FMS24/Web/AppFms/Bd/frmBdServiceTypeData.aspx.cs

@@ -33,7 +33,7 @@ public partial class AppFms_Bd_frmBdServiceTypeData : BasePage
         {
         {
             string id = PageHelper.Request("id");
             string id = PageHelper.Request("id");
 
 
-            EciRequest request = new EciRequest(FMSService.BdServiceGetLower);
+            EciRequest request = new EciRequest(FMSService.BdServiceGetLowerFwlb);
             request["ID"] = id;
             request["ID"] = id;
 
 
             EciResponse response = SOA.Execute(request);
             EciResponse response = SOA.Execute(request);