예제 #1
0
        public decimal Customer_Insert(Customer_Info p_Customer_Info)
        {
            try
            {
                Traces_Log_Controllers _traceControler = new Traces_Log_Controllers();
                _traceControler.Trace_Insert("CUSTOMER", "INSERT", p_Customer_Info.Created_By, p_Customer_Info);

                return(CommonData.c_serviceWCF.Customer_Insert(p_Customer_Info.Customer_Name, p_Customer_Info.Phone, p_Customer_Info.Fax, p_Customer_Info.Identity_Card,
                                                               p_Customer_Info.Address, p_Customer_Info.Tax_Code, p_Customer_Info.Customer_Type, p_Customer_Info.Is_Person, p_Customer_Info.Position));
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(-1);
            }
        }
예제 #2
0
        public bool Customer_Update(decimal Customer_Id, Customer_Info p_Customer_Info, Customer_Info p_old)
        {
            try
            {
                Traces_Log_Controllers _traceControler = new Traces_Log_Controllers();
                _traceControler.Trace_Insert("CUSTOMER", "UPDATE", p_Customer_Info.Modifi_By, p_Customer_Info, p_old);


                return(CommonData.c_serviceWCF.Customer_Update(Customer_Id, p_Customer_Info.Customer_Name, p_Customer_Info.Phone, p_Customer_Info.Fax, p_Customer_Info.Identity_Card,
                                                               p_Customer_Info.Address, p_Customer_Info.Tax_Code, p_Customer_Info.Customer_Type, p_Customer_Info.Is_Person, p_Customer_Info.Position));
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(false);
            }
        }
예제 #3
0
        public decimal Contract_Insert(Contract_Info p_Contract_Info)
        {
            try
            {
                Traces_Log_Controllers _traceControler = new Traces_Log_Controllers();
                _traceControler.Trace_Insert("CONTRACT", "INSERT", p_Contract_Info.Created_By, p_Contract_Info);

                return(CommonData.c_serviceWCF.Contract_Insert(p_Contract_Info.Contract_Code, p_Contract_Info.Contract_Name,
                                                               p_Contract_Info.Status, p_Contract_Info.Estate_Id, p_Contract_Info.Object_Id, p_Contract_Info.Contract_Type, p_Contract_Info.Price,
                                                               p_Contract_Info.Fee, p_Contract_Info.Currency, p_Contract_Info.Fee_Status, p_Contract_Info.Contract_FromDate, p_Contract_Info.Contract_ToDate,
                                                               p_Contract_Info.Term, p_Contract_Info.Pay_Count, p_Contract_Info.Object_Type, p_Contract_Info.Contract_Date, p_Contract_Info.FeeOnePay,
                                                               p_Contract_Info.Created_By, p_Contract_Info.Created_Date, p_Contract_Info.Users, p_Contract_Info.Representive, p_Contract_Info.Contract_ToDate_Ex));
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(-1);
            }
        }
예제 #4
0
        public bool Contract_Update(decimal p_Contract_Id, Contract_Info p_Contract_Info, Contract_Info p_old)
        {
            try
            {
                Traces_Log_Controllers _traceControler = new Traces_Log_Controllers();
                _traceControler.Trace_Insert("CONTRACT", "UPDATE", p_Contract_Info.Modifi_By, p_Contract_Info, p_old);

                return(CommonData.c_serviceWCF.Contract_Update(p_Contract_Id, p_Contract_Info.Contract_Code, p_Contract_Info.Contract_Name,
                                                               p_Contract_Info.Status, p_Contract_Info.Estate_Id, p_Contract_Info.Object_Id, p_Contract_Info.Contract_Type, p_Contract_Info.Price,
                                                               p_Contract_Info.Fee, p_Contract_Info.Currency, p_Contract_Info.Fee_Status, p_Contract_Info.Contract_FromDate, p_Contract_Info.Contract_ToDate,
                                                               p_Contract_Info.Term, p_Contract_Info.Pay_Count, p_Contract_Info.Object_Type, p_Contract_Info.Contract_Date, p_Contract_Info.FeeOnePay,
                                                               p_Contract_Info.Modifi_By, p_Contract_Info.Modifi_Date, p_Contract_Info.Users, p_Contract_Info.Representive, p_Contract_Info.Contract_ToDate_Ex));
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(false);
            }
        }