Exemplo n.º 1
0
        public void bindServicesType()
        {
            try
            {
                QuotationServicesModel[] objQuoSer = client.GetAllQuotationServices(ParlourId);
                ddlServices.DataTextField  = "ServiceName";
                ddlServices.DataValueField = "pkiServiceID";
                ddlServices.DataSource     = objQuoSer;
                ddlServices.DataBind();
                ddlServices.Items.Insert(0, new ListItem("Select", "0"));

                QuotationDiscountModel objid = client.GetAllQuotationDiscounts(QuotationID);
                if (objid == null)
                {
                    ViewState["DiscountID"] = "0";
                }
                else
                {
                    ViewState["DiscountID"] = objid.DiscountID;
                }
            }
            catch (Exception ex)
            {
                ShowMessage(ref lblMessage, MessageType.Danger, ex.Message);
            }
        }
Exemplo n.º 2
0
 private void BindFuneralServiceList()
 {
     QuotationServicesModel[] objQuoSer = client.GetAllQuotationServices(ParlourId);
     ddlServices.DataTextField  = "ServiceName";
     ddlServices.DataValueField = "pkiServiceID";
     ddlServices.DataSource     = objQuoSer;
     ddlServices.DataBind();
     ddlServices.Items.Insert(0, new ListItem("Select", "0"));
 }
Exemplo n.º 3
0
 public void bindServicesType()
 {
     try
     {
         QuotationServicesModel[] objQuoSer = client.GetAllQuotationServices(ParlourId);
         ddlServices.DataTextField  = "ServiceName";
         ddlServices.DataValueField = "pkiServiceID";
         ddlServices.DataSource     = objQuoSer;
         ddlServices.DataBind();
         ddlServices.Items.Insert(0, new ListItem("Select Service", "0"));
     }
     catch (Exception ex)
     {
         ShowMessage(ref lblMessage, MessageType.Danger, ex.Message);
     }
 }