/// <summary> /// 设置 /// </summary> public override void EntitySet() { SampleSO entity = new SampleSO(); entity.ID = HTDataID; bool findFlag = entity.SelectByID(); txtFormNo.Text = entity.FormNo.ToString(); txtFormDate.DateTime = entity.FormDate; txtAppOPID.Text = entity.AppOPID.ToString(); //txtSaleOPID.Text = entity.SaleOPID.ToString(); drpDepID.Text = entity.DepID.ToString(); drpSaleOPID.EditValue = entity.SaleOPID; drpVendorID.EditValue = entity.VendorID; drpSaleGroup.Text = entity.SaleGroup.ToString(); //txtVendorID.Text = entity.VendorID.ToString(); txtMakeOPID.Text = entity.MakeOPID.ToString(); txtMakeOPName.Text = entity.MakeOPName.ToString(); txtMakeDate.DateTime = entity.MakeDate; txtRemark.Text = entity.Remark.ToString(); HTDataSubmitFlag = entity.SubmitFlag; HTDataDelFlag = entity.DelFlag; if (!findFlag) { } BindGridDts(); }
/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private SampleSO EntityGet() { SampleSO entity = new SampleSO(); entity.ID = HTDataID; entity.SelectByID(); entity.FormNo = txtFormNo.Text.Trim(); entity.FormDate = txtFormDate.DateTime.Date; entity.AppOPID = txtAppOPID.Text.Trim(); //entity.SaleOPID = txtSaleOPID.Text.Trim(); entity.SaleOPID = SysConvert.ToString(drpSaleOPID.EditValue); entity.DepID = SysConvert.ToInt32(drpDepID.Text.Trim()); entity.SaleGroup = drpSaleGroup.Text.Trim(); //entity.VendorID = txtVendorID.Text.Trim(); entity.VendorID = SysConvert.ToString(drpVendorID.EditValue); entity.MakeOPID = txtMakeOPID.Text.Trim(); entity.MakeOPName = txtMakeOPName.Text.Trim(); entity.MakeDate = txtMakeDate.DateTime.Date; entity.Remark = txtRemark.Text.Trim(); return(entity); }