Beispiel #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));
     }
 }
Beispiel #2
0
 public bool IsExistsCommonType(string code)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.IsExistsCommonType(validationTicket, code));
     }
 }
Beispiel #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));
     }
 }
Beispiel #4
0
 public bool DeleteItemDesc(string fid)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.DeleteItemDesc(validationTicket, fid));
     }
 }
Beispiel #5
0
 public bool IsExistsItemClass(string FNumber)
 {
     using (SGDatabase_HClient client = WcfClientFactory.CreateSGDatabase_HClient())
     {
         byte[] validationTicket = WebServiceSecurity.GetLoginTicket();
         return(client.IsExistsItemClass(validationTicket, FNumber));
     }
 }
Beispiel #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]);
     }
 }
Beispiel #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));
     }
 }