Пример #1
0
 public bool AddCommonType(string fid, string code, string name)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.AddCommonType(validationTicket, fid, code, name));
     }
 }
Пример #2
0
 public bool IsExistsCommonType(string code)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.IsExistsCommonType(validationTicket, code));
     }
 }
Пример #3
0
 public bool SetOrder(string Upfid, string Downfid)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.SetOrder(validationTicket, Upfid, Downfid));
     }
 }
Пример #4
0
 public bool DeleteItemDesc(string fid)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.DeleteItemDesc(validationTicket, fid));
     }
 }
Пример #5
0
 public bool IsExistsItemClass(string FNumber)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.IsExistsItemClass(validationTicket, FNumber));
     }
 }
Пример #6
0
 public System.Data.DataTable SearchBy(string dataType)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] receivedData     = client.SearchCommonType(validationTicket, dataType);
         return(ZipTools.DecompressionDataSet(receivedData).Tables[0]);
     }
 }
Пример #7
0
 public System.Data.DataSet GetItemDesc(string FNumber)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         byte[] receivedData     = client.GetItemDesc(validationTicket, FNumber);
         return(ZipTools.DecompressionDataSet(receivedData));
     }
 }