Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         DataSet dsCouponList = new DataSet();
         changeLinks();
         getCompanyName();
         btnUpdate.Attributes.Add("onclick", "clcontent();");
         if (!IsPostBack)
         {
             dropLocation.bindLocationDropdown(drpLocation);//Bind Location  into dropdown
             lblMsg.Text = "";
             int couponId = Convert.ToInt32(Request.QueryString["couponId"]);
             dsCouponList = dbEditInfo.selectCouponsDetails(couponId);
             if (dsCouponList.Tables.Count > 0)
             {
                 if (dsCouponList != null && dsCouponList.Tables.Count > 0 && dsCouponList.Tables[0].Rows.Count > 0)
                 {
                     //txtAmount.Text = Convert.ToString(Math.Round(Convert.ToDouble(dsCouponList.Tables[0].Rows[0]["coupon_amount"]),2));
                     txtAmount.Text            = Convert.ToDecimal(dsCouponList.Tables[0].Rows[0]["coupon_amount"]).ToString("0.00", System.Globalization.CultureInfo.InvariantCulture);
                     txtCouponName.Text        = Convert.ToString(dsCouponList.Tables[0].Rows[0]["coupon_code"]);
                     drpType.SelectedValue     = Convert.ToString(dsCouponList.Tables[0].Rows[0]["coupon_type"]);
                     drpLocation.SelectedValue = Convert.ToString(dsCouponList.Tables[0].Rows[0]["location_id"]);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         changeLinks();
         getCompanyName();
         if (!IsPostBack)
         {
             dropLocation.bindLocationDropdown(drpLocation);//Bind location  into dropdown
             int check = 0;
             check = Convert.ToInt32(Request.QueryString["check"]);
             if (check == 1)
             {
                 txtSearch.Text = Request.QueryString["strKey"];
                 drpSearchField.SelectedValue = Convert.ToString(Request.QueryString["intIn"]);
                 drpLocation.SelectedValue    = Convert.ToString(Request.QueryString["locId"]);
                 drpPagingNmber.SelectedValue = Convert.ToString(Request.QueryString["perPage"]);
             }
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //  btnAdd.Attributes.Add("onclick", "clcontent();");
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         dropLocation.bindLocationDropdown(drpLocation); //Bind location  into dropdown
         dropLocation.bindShelfDropdown(drpShelf);       //Bind shelf  into dropdown
         // dropLocation.bindProductDropdown(drpProduct);//bind all product intodropdown
         string Check = string.Empty;
         Check = Request.QueryString["check"];
         if (Check != "" && Check != null)
         {
             drpLocation.SelectedValue = Request.QueryString["loc"];
             drpShelf.SelectedValue    = Request.QueryString["shefId"];
             txtKeyWord.Text           = Request.QueryString["strKey"];
             int perPage = Convert.ToInt32(Request.QueryString["perPage"]);
             if (perPage == 10)
             {
                 drpPerPage.SelectedValue = "Select";
             }
             else
             {
                 drpPerPage.SelectedValue = Convert.ToString(perPage);
             }
         }
     }
 }
Beispiel #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         dropLocation.bindLocationDropdown(drpLocationName);//Bind location  into dropdown
     }
 }
Beispiel #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     btnSend.Attributes.Add("onclick", "clcontent();");
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         dropLocation.bindLocationDropdown(drpLocation);//Bind location  into dropdown
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         drProviderDeliver.bindDeliveryDateDropdown(drpDeliveryDate);
         drProviderDeliver.bindLocationDropdown(drpLocation);
     }
 }
Beispiel #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DropdownProvider ddpLocation = new DropdownProvider();

            btnAdd.Attributes.Add("onclick", "clcontent();");
            changeLinks();
            getCompanyName();
            if (!IsPostBack)
            {
                lblMsg.Text = "";
                ddpLocation.bindLocationDropdown(drpLocation);
            }
        }
Beispiel #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         changeLinks();
         getCompanyName();
         if (!IsPostBack)
         {
             dropLocation.bindLocationDropdown(drpLocation); //Bind location  into dropdown
             dropLocation.bindShelfDropdownNew(drpShelves);  //Bind location  into dropdown
             int check = 0;
             check = Convert.ToInt32(Request.QueryString["check"]);
             if (check == 1)
             {
                 string strStartDate = string.Empty;
                 string strToDate    = string.Empty;
                 int    intshelfid   = 0;
                 int    perPage      = 0;
                 string strPopular   = string.Empty;
                 strStartDate              = Convert.ToString(Request.QueryString["sDate"]);
                 strToDate                 = Convert.ToString(Request.QueryString["eDate"]);
                 intshelfid                = Convert.ToInt32(Request.QueryString["shelfId"]);
                 strPopular                = Convert.ToString(Request.QueryString["strPopular"]);
                 perPage                   = Convert.ToInt32(Request.QueryString["perPage"]);
                 drpShelves.SelectedValue  = Convert.ToString(intshelfid);
                 drpLocation.SelectedValue = Convert.ToString(Request.QueryString["locId"]);
                 if (perPage == 0)
                 {
                     drpTotalPages.SelectedValue = "Select";
                 }
                 else
                 {
                     drpTotalPages.SelectedValue = Convert.ToString(perPage);
                 }
                 drpProdcutPopular.SelectedValue = strPopular;
                 txtFromDate.Text = strStartDate;
                 DateTime dtToday  = DateTime.Today;
                 string   strToday = Convert.ToString(dtToday.Year) + "/" + Convert.ToString(dtToday.Day) + "/" + Convert.ToString(dtToday.Month);
                 if (strToday != strToDate)
                 {
                     txtToDate.Text = strToDate;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
Beispiel #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         try
         {
             dropLocation.bindLocationDropdown(drpLocation);//Bind location  into dropdown
             BindHomeText();
         }
         catch (Exception ex)
         {
             Response.Write(ex.Message);
         }
     }
 }
Beispiel #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     btnAdd.Attributes.Add("onclick", "clcontent();");
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         dropZip.bindZipCheckBox(lisZip);
         dropZip.bindLocationDropdown(drpLocation);
         for (int intZip = 0; intZip < lisZip.Items.Count; intZip++)
         {
             lisZip.Items[intZip].Selected = true;
         }
         lblMsg.Text = "";
         BindCheck();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         dropLocation.bindLocationDropdown(drpLocationName);//Bind location  into dropdown
         lblMsg.Text = "";
         int check = 0;
         check = Convert.ToInt32(Request.QueryString["check"]);
         if (check == 1)
         {
             txtFromDate.Text = Request.QueryString["startDate"];
             txtToDate.Text   = Request.QueryString["endDate"];
             drpLocationName.SelectedValue = Request.QueryString["locId"];
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         btnUpdate.Attributes.Add("onclick", "clcontent();");
         DropdownProvider ddpLocation = new DropdownProvider();
         changeLinks();
         getCompanyName();
         if (!IsPostBack)
         {
             ddpLocation.bindLocationDropdown(drpLocation);
             getZipCode();
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         changeLinks();
         getCompanyName();
         if (!IsPostBack)
         {
             dropLocation.bindLocationDropdown(drpLocation);//Bind location  into dropdown
             int check = 0;
             check = Convert.ToInt32(Request.QueryString["check"]);
             if (check == 1)
             {
                 int OrderType = 0;
                 txtFromDate.Text = Convert.ToString(Request.QueryString["stDate"]);
                 txtToDate.Text   = Convert.ToString(Request.QueryString["enDate"]);
                 if (Convert.ToString(Request.QueryString["ordNum"]) != "0")
                 {
                     txtorderNum.Text = Convert.ToString(Request.QueryString["ordNum"]);
                 }
                 drpLocation.SelectedValue = Convert.ToString(Request.QueryString["intLocId"]);
                 drpShow.SelectedValue     = Convert.ToString(Request.QueryString["intShow"]);
                 OrderType = Convert.ToInt32(Request.QueryString["OrderType"]);
                 for (int rdDateCnt = 0; rdDateCnt < rdDate.Items.Count; rdDateCnt++)
                 {
                     if (Convert.ToInt32(rdDate.Items[rdDateCnt].Value) == OrderType)
                     {
                         rdDate.Items[rdDateCnt].Selected = true;
                     }
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         try
         {
             dropLocation.bindLocationDropdown(drpLocation);//Bind location  into dropdown
             dropLocation.bindLocation(drpLoc);
             int check = 0;
             check = Convert.ToInt32(Request.QueryString["check"]);
             if (check != 0)
             {
                 if (check == 1)
                 {
                     drpLoc.SelectedValue  = Convert.ToString(Request.QueryString["locId"]);
                     drpShow.SelectedValue = Convert.ToString(Request.QueryString["perPage"]);
                 }
                 else
                 {
                     if (Convert.ToInt32(Request.QueryString["locId"]) == 0)
                     {
                         //drpLocation.SelectedValue = "Select";
                     }
                     else
                     {
                         drpLocation.SelectedValue = Convert.ToString(Request.QueryString["locId"]);
                     }
                 }
             }
         }
         catch (Exception ex)
         {
             Response.Write(ex.Message);
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         int check = 0;
         check = Convert.ToInt32(Request.QueryString["check"]);
         dropLocation.bindLocationDropdown(drpLocation);//Bind location  into dropdown
         if (check == 1)
         {
             int locId     = 0;
             int intBalAmt = 0;
             int orderBy   = 0;
             locId     = Convert.ToInt32(Request.QueryString["locId"]);
             intBalAmt = Convert.ToInt32(Request.QueryString["intBalAmt"]);
             orderBy   = Convert.ToInt32(Request.QueryString["orderBy"]);
             drpLocation.SelectedValue = Convert.ToString(locId);
             drpBalance.SelectedValue  = Convert.ToString(intBalAmt);
             drpOrder.SelectedValue    = Convert.ToString(orderBy);
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     changeLinks();
     getCompanyName();
     if (!IsPostBack)
     {
         dropLocation.bindLocationDropdown(drpLocation);//Bind location  into dropdown
         string strStartDate = string.Empty;
         string strToDate    = string.Empty;
         string location     = string.Empty;
         int    intChk       = 0;
         intChk = Convert.ToInt32(Request.QueryString["check"]);
         if (intChk != 0)
         {
             strStartDate              = Request.QueryString["startDate"];
             strToDate                 = Request.QueryString["endDate"];
             location                  = Request.QueryString["location"];
             txtFromDate.Text          = strStartDate;
             txtToDate.Text            = strToDate;
             drpLocation.SelectedValue = location;
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            btnAdd.Attributes.Add("onclick", "clcontent();");
            changeLinks();
            getCompanyName();
            Label1.Text = "";
            if (!IsPostBack)
            {
                strDeliverydateID    = Convert.ToString(Request.QueryString["DeliveryDateID"]);
                strDate              = Convert.ToString(Request.QueryString["date"]);
                txtDeliveryDate.Text = Convert.ToDateTime(strDate).ToShortDateString();
                dropZip.bindZipCheckBox(lisZip);

                DataSet dsDeliverytime = dbAddInfo.SelectDeliveryDatezipAllDetails(strDeliverydateID);
                if (dsDeliverytime.Tables[0].Rows.Count > 0)
                {
                    foreach (DataRow dtrow in dsDeliverytime.Tables[0].Rows)
                    {
                        string zipid = Convert.ToString(dtrow["zipcode_id"]);
                        for (int intZip = 0; intZip < lisZip.Items.Count; intZip++)
                        {
                            if (zipid == lisZip.Items[intZip].Value)
                            {
                                lisZip.Items[intZip].Selected = true;
                            }
                        }
                        // lisZip.Items[Convert.ToInt32(zipid)].Selected = true;
                        // lisZip.Items.SelectedValue = zipid;
                    }
                }
                dropZip.bindLocationDropdown(drpLocation);

                lblMsg.Text = "";
                Label1.Text = "";
                BindCheck();
            }
        }