public bool InsertCustomer(string UPICode, string FullName, string Address, string Street, string Ward, string Phone, string Password, int CustomerTypeId,
     int ChannelId, int DistrictId, int LocalId, DateTime CreateDate, DateTime UpdateDate, bool Status, int CustomerId, bool IsApprove, int APPROVED_BY, int changeBy,
     string noteOfSalesmen)
 {
     try
     {
         CustomerLog o = new CustomerLog();
         o.UpiCode = UPICode;
         o.FullName = FullName;
         o.Address = Address;
         o.Street = Street;
         o.Ward = Ward;
         o.Phone = Phone;
         o.Password = Password;
         o.CustomerTypeId = CustomerTypeId;
         o.ChannelId = ChannelId;
         o.DistrictId = DistrictId;
         o.LocalId = LocalId;
         o.CreateDate = CreateDate;
         o.UpdateDate = UpdateDate;
         o.Status = Status;
         o.CustomerId = CustomerId;
         o.IsApprove = IsApprove;
         o.ApproveBy = APPROVED_BY;
         o.ChangeBy = changeBy;
         o.NoteOfSalesmen = noteOfSalesmen;
         db.CustomerLogs.InsertOnSubmit(o);
         db.SubmitChanges();
         return true;
     }
     catch
     {
         return false;
     }
 }
示例#2
0
	private void detach_CustomerLogs(CustomerLog entity)
	{
		this.SendPropertyChanging();
		entity.Salesmen = null;
	}
示例#3
0
	private void attach_CustomerLogs(CustomerLog entity)
	{
		this.SendPropertyChanging();
		entity.Customer = this;
	}
示例#4
0
	private void detach_CustomerLogs(CustomerLog entity)
	{
		this.SendPropertyChanging();
		entity.District = null;
	}
示例#5
0
 partial void DeleteCustomerLog(CustomerLog instance);
示例#6
0
 partial void UpdateCustomerLog(CustomerLog instance);
示例#7
0
 partial void InsertCustomerLog(CustomerLog instance);