private CRMAgreementVariableMapEntity BuildCRMAgreementVariableMapEntity() { CRMAgreementVariableMapEntity cRMAgreementVariableMapEntity = CurrentCRMAgreementVariableMapEntity; cRMAgreementVariableMapEntity.AgreementID = OverviewAgreementID; txtName.Text = MiscUtil.DocumentVariableParsing(txtName.Text.ToString()); cRMAgreementVariableMapEntity.Name = txtName.Text.Trim(); cRMAgreementVariableMapEntity.Value = txtValue.Text.Trim(); cRMAgreementVariableMapEntity.Remarks = txtRemarks.Text.Trim(); cRMAgreementVariableMapEntity.CreatedByEmployeeID = CurrentemployeeID; cRMAgreementVariableMapEntity.CreateDate = System.DateTime.Now; cRMAgreementVariableMapEntity.IP = MiscUtil.GetLocalIP(); return(cRMAgreementVariableMapEntity); }
private CRMMDAgreementVariableEntity BuildCRMMDAgreementVariableEntity() { CRMMDAgreementVariableEntity cRMMDAgreementVariableEntity = CurrentCRMMDAgreementVariableEntity; txtName.Text = MiscUtil.DocumentVariableParsing(txtName.Text.ToString()); cRMMDAgreementVariableEntity.Name = txtName.Text.Trim(); cRMMDAgreementVariableEntity.Value = txtValue.Text.Trim(); cRMMDAgreementVariableEntity.Remarks = txtRemarks.Text.Trim(); cRMMDAgreementVariableEntity.CreatedByEmployeeID = CurrentemployeeID; cRMMDAgreementVariableEntity.CreateDate = System.DateTime.Now; cRMMDAgreementVariableEntity.IP = MiscUtil.GetLocalIP(); cRMMDAgreementVariableEntity.IsRemoved = chkIsRemoved.Checked; return(cRMMDAgreementVariableEntity); }