本文整理汇总了C#中Inventory.RefreshGridviewMedicineByCategory方法的典型用法代码示例。如果您正苦于以下问题:C# Inventory.RefreshGridviewMedicineByCategory方法的具体用法?C# Inventory.RefreshGridviewMedicineByCategory怎么用?C# Inventory.RefreshGridviewMedicineByCategory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Inventory
的用法示例。
在下文中一共展示了Inventory.RefreshGridviewMedicineByCategory方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ddlCategoryForItemShow_SelectedIndexChanged
protected void ddlCategoryForItemShow_SelectedIndexChanged(object sender, EventArgs e)
{
Session["new"] = "NO";
gridviewMedicine.DataSource = null;
gridviewMedicine.DataBind();
gridviewMedicine.Dispose();
med = new Inventory();
med.RefreshGridviewByCategoryAndQuantityLow(GridView1, (string)Session["CategoryQuantLimit"],Convert.ToInt32(Session["Quantity"]));
/*For GridView Medicine*/
if (Session["Category"] == null || Session["MedicineName"] == null)
{
med.RefreshGridviewMedicine(gridviewMedicine);
}
else
{
if (ddlCategory.Text != "")
{
med.RefreshGridviewMedicineByCategory(gridviewMedicine, (string)Session["Category"]);
}
else if (txtMedicineName.Text != "")
{
med.RefreshGridviewMedicineByName(gridviewMedicine, (string)Session["MedicineName"]);
}
}
Session["Quantity"] = txtQuantityLimit.Text;
Session["Category"] = ddlCategory.Text;
Session["MedicineName"] = txtMedicineName.Text;
Session["CategoryQuantLimit"] = ddlCategoryForItemShow.Text;
}
示例2: btn_belowQty_Click
protected void btn_belowQty_Click(object sender, EventArgs e)
{
Session["new"] = "NO";
gridviewMedicine.DataSource = null;
gridviewMedicine.DataBind();
gridviewMedicine.Dispose();
med = new Inventory();
med.RefreshGridviewByQuantityLowConfig(GridView1, Convert.ToInt32(txtQuantityLimit.Text.Trim()));
if (Session["Category"] == null || Session["MedicineName"] == null)
{
med.RefreshGridviewMedicine(gridviewMedicine);
}
else
{
if (ddlCategory.Text != "")
med.RefreshGridviewMedicineByCategory(gridviewMedicine, (string)Session["Category"]);
else if (txtMedicineName.Text != "")
med.RefreshGridviewMedicineByName(gridviewMedicine, (string)Session["MedicineName"]);
}
Session["Quantity"] = txtQuantityLimit.Text;
Session["Category"] = ddlCategory.Text;
Session["MedicineName"] = txtMedicineName.Text;
Session["CategoryQuantLimit"] = ddlCategoryForItemShow.Text;
}
示例3: ddlCategory_SelectedIndexChanged
protected void ddlCategory_SelectedIndexChanged(object sender, EventArgs e)
{
Session["new"] = "NO";
gridviewMedicine.DataSource = null;
gridviewMedicine.DataBind();
gridviewMedicine.Dispose();
med = new Inventory();
med.RefreshGridviewMedicineByCategory(gridviewMedicine,ddlCategory.Text);
if (Session["Quantity"] == null)
{
med.RefreshGridviewByQuantityLow(GridView1);
}
else
med.RefreshGridviewByQuantityLowConfig(GridView1, Convert.ToInt32(Session["Quantity"]));
Session["Quantity"] = txtQuantityLimit.Text;
Session["Category"] = ddlCategory.Text;
Session["CategoryQuantLimit"] = ddlCategoryForItemShow.Text;
Session["MedicineName"] = txtMedicineName.Text;
}