Beispiel #1
0
 public int ws_insertNode(string NodeName, int?ParentID, bool IsCalibrated, out string OpStatus)
 {
     try
     {
         int code = 0;
         DeviceDataManager DDM = new DeviceDataManager();
         code = DDM.insertDevType(NodeName, ParentID, 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);
     }
 }
Beispiel #2
0
 public int ws_insertNode(string NodeName, int? ParentID,bool IsCalibrated, out string OpStatus)
 {
     try
     {
         int code = 0;
         DeviceDataManager DDM = new DeviceDataManager();
         code = DDM.insertDevType(NodeName, ParentID, 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;
     }
 }