예제 #1
0
 public int ws_updateNode(int NodeID, string NodeName, int?ParentID, string LinkToIcon, bool IsCalibrated, out string OpStatus)
 {
     try
     {
         int code = 0;
         DeviceDataManager DDM = new DeviceDataManager();
         code = DDM.modifyType(NodeID, NodeName, ParentID, LinkToIcon, IsCalibrated);
         if (code == 0)
         {
             OpStatus = Resources.Messages.m_OpStatusDone;
         }
         else
         {
             OpStatus  = Resources.Messages.m_OpStatusFail;
             OpStatus += code;
         }
         return(1);
     }
     catch (Exception err)
     {
         OpStatus  = Resources.Messages.m_OpStatusFail;
         OpStatus += err.Message.ToString();
         return(0);
     }
 }
예제 #2
0
 public int ws_updateNode(int NodeID, string NodeName, int? ParentID, string LinkToIcon, bool IsCalibrated, out string OpStatus)
 {
     try
     {
         int code = 0;
         DeviceDataManager DDM = new DeviceDataManager();
         code = DDM.modifyType(NodeID, NodeName, ParentID, LinkToIcon, IsCalibrated);
         if (code == 0)
         {
             OpStatus = Resources.Messages.m_OpStatusDone;
         }
         else
         {
             OpStatus = Resources.Messages.m_OpStatusFail;
             OpStatus += code;
         }
         return 1;
     }
     catch (Exception err)
     {
         OpStatus = Resources.Messages.m_OpStatusFail;
         OpStatus += err.Message.ToString();
         return 0;
     }
 }