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


C# Inventory.RefreshGridviewMedicine方法代码示例

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


在下文中一共展示了Inventory.RefreshGridviewMedicine方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load

    //protected void Page_Init(object Sender, EventArgs e)
    //{
    //    Response.Cache.SetCacheability(HttpCacheability.NoCache);
    //    Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
    //    Response.Cache.SetNoStore();
    //}

    protected void Page_Load(object sender, EventArgs e)
    {
        /*Lakhi Finished*/

        if (Session["new"] == null)
        {
            med = new Inventory();
            med.RefreshGridviewMedicine(gridviewMedicine);
            med.RefreshGridviewByQuantityLowConfig(GridView1,Convert.ToInt32(txtQuantityLimit.Text));
        }
        ds = new DataSet();
        dt = new DataTable();
        dt.Columns.Add("MedicineId");
        dt.Columns.Add("MedicineName");
        dt.Columns.Add("Quantity");
        Session["Quantity"] = txtQuantityLimit.Text;
        Session["Category"] = ddlCategory.Text;
        Session["MedicineName"] = txtMedicineName.Text;
    }
开发者ID:abdojobs,项目名称:paombonghealthcare,代码行数:26,代码来源:Inventory.aspx.cs

示例2: btnCheckOut_Click

    protected void btnCheckOut_Click(object sender, EventArgs e)
    {
        int count = gridViewList.Rows.Count;
        med = new Inventory();
        for (int index = 0; index < count; index++)
        {
            med.UpdateStock(Convert.ToInt32(gridViewList.Rows[index].Cells[0].Text.ToString()), Convert.ToInt32(gridViewList.Rows[index].Cells[2].Text.ToString()));
            med.SaveMedicineLog(Convert.ToInt32(gridViewList.Rows[index].Cells[0].Text.ToString()),gridViewList.Rows[index].Cells[1].Text.ToString(), 
                Convert.ToInt32(gridViewList.Rows[index].Cells[2].Text.ToString()), Page.User.Identity.Name,"CheckOut");
        }

        Session["List"] = null;
        gridViewList.DataSource = null;
        gridViewList.DataBind();
        gridViewList.Dispose();
        med.RefreshGridviewMedicine(gridviewMedicine);
        med.RefreshGridviewByQuantityLowConfig(GridView1, Convert.ToInt32(txtQuantityLimit.Text));
    }
开发者ID:abdojobs,项目名称:paombonghealthcare,代码行数:18,代码来源:Inventory.aspx.cs

示例3: 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

示例4: 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


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