protected void btnimportNext_Click(object sender, EventArgs e) { CustomProfile profile = CustomProfile.GetProfile(); ImportServiceClient Import = new ImportServiceClient(); DataSet ds = new DataSet(); DataSet Importvalue = new DataSet(); Importvalue = (DataSet)Session["ImportValues"]; ds = Import.ValidateImportData(hdnobject.Value, profile.Personal.UserID, profile.Personal.CompanyID, Importvalue); GVImportView.DataSource = ds; GVImportView.DataBind(); if (Validate != "") { lblbackMessage.Text = "Colored Row Data is not valid, Please Check Remark and Click on Back button."; btnnext.Enabled = false; btnnext.CssClass = "class1"; } else { lblOkMessage.Text = "All data are verified.Please click on Next Button "; btnnext.Enabled = true; lblbackMessage.Visible = false; btnnext.CssClass = "class2"; } // Up_PnlGirdProduct.Visible = false; // UpdateGirdProductProcess.Visible = false; Import.Close(); pnlImport.Visible = false; pnlvalidate.Visible = true; }
public void DisplayGrid() { iProductMasterClient productClient = new iProductMasterClient(); CustomProfile profile = CustomProfile.GetProfile(); ds = productClient.GetPriceImportData(DeptID, profile.DBConnection._constr); dt = ds.Tables[0]; if (dt.Rows.Count > 0) { GVImportView.DataSource = ds.Tables[0]; GVImportView.DataBind(); } else { value = 3; } if (value == 0) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Colored Row SKU not Available in OMS.Please click on Back Button"; } else if (value == 2) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Characters and blank values not asccepted in Price columns"; } else if (value == 3) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Please Select Correct Company and department for Uploading SKU price"; } else { lblOkMessage.Text = "All data are verified.Please click on Next Button "; btnnext.Enabled = true; btnnext.CssClass = "class2"; } }
public void DisplayGrid() { iProductMasterClient productClient = new iProductMasterClient(); CustomProfile profile = CustomProfile.GetProfile(); ds = productClient.GetDirectOrderData(profile.DBConnection._constr); dt = ds.Tables[0]; if (dt.Rows.Count > 0) { GVImportView.DataSource = ds.Tables[0]; GVImportView.DataBind(); } else { value = 3; } if (value == 0) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Colored Row SKU not Available in OMS.Please click on Back Button"; } else if (value == 2) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Characters and blank values not asccepted in Price columns"; } else if (value == 3) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Please Select Correct Company and department for Uploading SKU price"; } else if (value == 4) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Current Stock is Less than requested Qty"; } else if (value == 5) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Requested Qty is not according to MOQ"; } else if (value == 6) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Quantity Should not be blank,Zero or Charecters"; } else if (value == 7) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "SKU not available in Given Department"; } else if (value == 8) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Department Not Available"; } else if (value == 9) { btnnext.Enabled = false; btnnext.CssClass = "class1"; lblbackMessage.Text = "Location Not Available"; } else { lblOkMessage.Text = "All data are verified.Please click on Next Button "; btnnext.Enabled = true; btnnext.CssClass = "class2"; } }