public void DeleteCuCustomer(string cuId) { CuCustomerEntity entity = new CuCustomerEntity() { CuId = cuId, DeleteFlag = true }; entity.Update(); }
private CuCustomerEntity PrepareFormData() { //TODO:需要校验参数的合法性 txtCuId.Text.InitValidation("编号").NotEmpty().ShorterThan(25); txtCuName.Text.InitValidation("姓名").NotEmpty().ShorterThan(25); txtDistrict.Text.InitValidation("地区").NotEmpty().ShorterThan(25); txtAddress.Text.InitValidation("地址").ShorterThan(250); txtRemark.Text.InitValidation("备注").ShorterThan(1000); var entity = new CuCustomerEntity(); entity.CuId = txtCuId.Text; entity.CuName = txtCuName.Text; entity.District = txtDistrict.Text; entity.Address = txtAddress.Text; entity.Remark = txtRemark.Text; entity.ActivityFlag = rEnabled.Checked; return(entity); }
public void UpdateCuCustomer(CuCustomerEntity entity) { EntityExecution.UpdateEntity(entity); }
public void AddNewCuCustomer(CuCustomerEntity entity) { entity.DeleteFlag = false; EntityExecution.InsertEntity(entity); }
public void DeleteCuCustomer(string cuId) { CuCustomerEntity entity = new CuCustomerEntity() { CuId = cuId, DeleteFlag = true }; EntityExecution.UpdateEntity(entity); }
private CuCustomerEntity PrepareFormData() { //TODO:需要校验参数的合法性 this.txtCuId.Text.InitValidation("编号").NotEmpty().ShorterThan(25); this.txtCuName.Text.InitValidation("姓名").NotEmpty().ShorterThan(25); this.txtDistrict.Text.InitValidation("地区").NotEmpty().ShorterThan(25); this.txtAddress.Text.InitValidation("地址").ShorterThan(250); this.txtRemark.Text.InitValidation("备注").ShorterThan(1000); var entity = new CuCustomerEntity(); entity.CuId = this.txtCuId.Text; entity.CuName = this.txtCuName.Text; entity.District = this.txtDistrict.Text; entity.Address = this.txtAddress.Text; entity.Remark = this.txtRemark.Text; entity.ActivityFlag = this.rEnabled.Checked; return entity; }
public void UpdateCuCustomer(CuCustomerEntity entity) { entity.Update(); }
public void AddNewCuCustomer(CuCustomerEntity entity) { entity.DeleteFlag = false; entity.Insert(); }