Esempio n. 1
0
 public bool Customer_Delete(decimal Customer_Id)
 {
     try
     {
         Customer_DA _Customer_DA = new Customer_DA();
         return(_Customer_DA.Customer_Delete(Customer_Id));
     }
     catch (Exception ex)
     {
         ErrorLog.log.Error(ex.ToString());
         return(false);
     }
 }
Esempio n. 2
0
 public decimal Customer_Insert(string Customer_Name, string p_Phone, string p_Fax, string p_Identity_Card,
                                string p_Address, string p_Tax_Code, decimal Customer_Type, decimal Is_Person, string Position)
 {
     try
     {
         Customer_DA _Customer_DA = new Customer_DA();
         return(_Customer_DA.Customer_Insert(Customer_Name, p_Phone, p_Fax, p_Identity_Card, p_Address, p_Tax_Code, Customer_Type, Is_Person, Position));
     }
     catch (Exception ex)
     {
         ErrorLog.log.Error(ex.ToString());
         return(-1);
     }
 }
Esempio n. 3
0
        public byte[] Customer_Check_In_Contract(decimal Customer_Id)
        {
            try
            {
                byte[]      byteReturn;
                Customer_DA _Customer_DA = new Customer_DA();
                DataSet     ds           = _Customer_DA.Customer_Check_In_Contract(Customer_Id);

                byteReturn = CompressionHelper.CompressDataSet(ds);
                return(byteReturn);
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(new byte[0]);
            }
        }
Esempio n. 4
0
        public byte[] Customer_GetById(decimal p_Tenant_Id)
        {
            try
            {
                byte[]      byteReturn;
                Customer_DA _Customer_DA = new Customer_DA();
                DataSet     ds           = _Customer_DA.Customer_GetById(p_Tenant_Id);

                byteReturn = CompressionHelper.CompressDataSet(ds);
                return(byteReturn);
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(new byte[0]);
            }
        }
Esempio n. 5
0
        public byte[] Customer_Search(string p_Tenant_Name, string p_Phone)
        {
            try
            {
                byte[]      byteReturn;
                Customer_DA _Customer_DA = new Customer_DA();
                DataSet     ds           = _Customer_DA.Customer_Search(p_Tenant_Name, p_Phone);

                byteReturn = CompressionHelper.CompressDataSet(ds);
                return(byteReturn);
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(new byte[0]);
            }
        }