Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        public void BindRejectMsg()
        {
            QuotationMessageModel objmsg = client.SelectQuotationMessageByID(QuotationID);

            if (objmsg != null)
            {
                txtReject.Text = objmsg.Message.ToString();
                ViewState["pkidQuotationMsg"] = objmsg.pkidQuotationMsg;
            }
        }
Ejemplo n.º 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)));
        }
Ejemplo n.º 4
0
 public int SaveQuotationMessage(QuotationMessageModel model)
 {
     return(QuotationBAL.SaveQuotationMessage(model));
 }