public void Save() { try { tbl_MProQuot quot = new tbl_MProQuot(); quot.MProQuot_id = HFQuotationID.Value; quot.MProQuot_dat = Convert.ToDateTime(string.IsNullOrEmpty(TBQuot_dat.Text) ? null : TBQuot_dat.Text); quot.MProQuot_rmk = string.IsNullOrEmpty(TBRmk.Text) ? null : TBRmk.Text; quot.CustomerID = string.IsNullOrEmpty(DDL_cust.SelectedValue) ? null : DDL_cust.SelectedValue; quot.CreatedBy = Session["user"].ToString(); quot.CreatedAt = DateTime.Today; quot.ISActive = ck_act.Checked.ToString(); quot.MProQuot_app = "0"; quot.MProQuot_Rej = "0"; quot.MProQuot_sono = string.IsNullOrEmpty(txtsono.Text) ? null : txtsono.Text; tbl_MProQuotManager quotmanag = new tbl_MProQuotManager(quot); quotmanag.Save(); SavDet(); ScriptManager.RegisterStartupScript(this, this.GetType(), "onclick", "javascript:window.open( 'ReportViewer.aspx?ID=QuotaionReport"ID=" + txtsono.Text.Trim() + "','_blank','height=600px,width=600px,scrollbars=1');", true); FillGrid(); Clear(); } catch (Exception ex) { lbl_err.Text = ex.Message.ToString(); } }
public override bool Equals(object obj) { if (obj == null) { return(false); } tbl_MProQuot MProQuot = obj as tbl_MProQuot; if (MProQuot == null) { return(false); } if (this.MProQuot_id == MProQuot.MProQuot_id) { return(true); } else { return(false); } }
public tbl_MProQuotManager(tbl_MProQuot _MProQuot) { MProQuot = _MProQuot; }