当前位置: 首页>>代码示例>>C#>>正文


C# Inventory.RefreshGridviewMedicineByName方法代码示例

本文整理汇总了C#中Inventory.RefreshGridviewMedicineByName方法的典型用法代码示例。如果您正苦于以下问题:C# Inventory.RefreshGridviewMedicineByName方法的具体用法?C# Inventory.RefreshGridviewMedicineByName怎么用?C# Inventory.RefreshGridviewMedicineByName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Inventory的用法示例。


在下文中一共展示了Inventory.RefreshGridviewMedicineByName方法的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;
    }
开发者ID:abdojobs,项目名称:paombonghealthcare,代码行数:33,代码来源:Inventory.aspx.cs

示例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;
    }
开发者ID:abdojobs,项目名称:paombonghealthcare,代码行数:27,代码来源:Inventory.aspx.cs

示例3: txtNameSearch_TextChanged

    protected void txtNameSearch_TextChanged(object sender, EventArgs e)
    {
        Session["new"] = "NO";
        gridviewMedicine.DataSource = null;
        gridviewMedicine.DataBind();
        gridviewMedicine.Dispose();

        med = new Inventory();
        med.RefreshGridviewMedicineByName(gridviewMedicine, txtNameSearch.Text.Trim());
        if (Session["Quantity"] == null)
        {
            med.RefreshGridviewByQuantityLow(GridView1);
        }
        else
            med.RefreshGridviewByQuantityLowConfig(GridView1, Convert.ToInt32(Session["Quantity"]));

        Session["Quantity"] = txtQuantityLimit.Text;
        Session["Category"] = ddlCategory.Text;
        Session["MedicineName"] = txtMedicineName.Text;
        Session["CategoryQuantLimit"] = ddlCategoryForItemShow.Text;
    }
开发者ID:abdojobs,项目名称:paombonghealthcare,代码行数:21,代码来源:Inventory.aspx.cs


注:本文中的Inventory.RefreshGridviewMedicineByName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。