protected void btn_Reject(object sender, EventArgs e)
        {
            try
            {
                QuotationMessageModel objmsg = null;
                if (objmsg != null)
                {
                    //ShowMessage(ref lblMessage, MessageType.Danger, "Member Dependenc  Already Exists.");
                }
                else
                {
                    objmsg = new QuotationMessageModel();
                    if (ViewState["pkidQuotationMsg"] != null)
                    {
                        objmsg.pkidQuotationMsg = Convert.ToInt32(ViewState["pkidQuotationMsg"]);
                    }
                    objmsg.QuotationID  = QuotationID;
                    objmsg.Message      = txtReject.Text;
                    objmsg.CreatedDate  = System.DateTime.Now;
                    objmsg.LastModified = System.DateTime.Now;
                    objmsg.ModifiedUser = UserName;
                    int a = client.SaveQuotationMessage(objmsg);

                    string status = "Reject";
                    int    accept = client.QuotationStatus(QuotationID, ParlourId, status);
                    Response.Redirect("~/Admin/Funeral.aspx", false);
                }
            }
            catch (Exception ex)
            {
                ShowMessage(ref lblMessage, MessageType.Danger, ex.Message);
            }
        }
        public void BindRejectMsg()
        {
            QuotationMessageModel objmsg = client.SelectQuotationMessageByID(QuotationID);

            if (objmsg != null)
            {
                txtReject.Text = objmsg.Message.ToString();
                ViewState["pkidQuotationMsg"] = objmsg.pkidQuotationMsg;
            }
        }
Exemple #3
0
        public static int SaveQuotationMessage(QuotationMessageModel model)
        {
            string query = "SaveQuotaionMessage";

            DbParameter[] ObjParam = new DbParameter[6];
            ObjParam[0] = new DbParameter("@pkidQuotationMsg", DbParameter.DbType.Int, 0, model.pkidQuotationMsg);
            ObjParam[1] = new DbParameter("@QuotationID", DbParameter.DbType.Int, 0, model.QuotationID);
            ObjParam[2] = new DbParameter("@Message", DbParameter.DbType.NVarChar, 0, model.Message);
            ObjParam[3] = new DbParameter("@CreatedDate", DbParameter.DbType.DateTime, 0, model.CreatedDate);
            ObjParam[4] = new DbParameter("@LastModified", DbParameter.DbType.DateTime, 0, model.LastModified);
            ObjParam[5] = new DbParameter("@ModifiedUser", DbParameter.DbType.NVarChar, 0, model.ModifiedUser);

            return(Convert.ToInt32(DbConnection.GetScalarValue(CommandType.StoredProcedure, query, ObjParam)));
        }
Exemple #4
0
 public int SaveQuotationMessage(QuotationMessageModel model)
 {
     return(QuotationBAL.SaveQuotationMessage(model));
 }