protected void Select(object sender, EventArgs e)
        {
            try
            {
                string Subinventory_name = subinventory_name.Value;
                string Item_name         = item_name.Value;

                GridView_header.DataSource = inventoryDC.getITEMS_ONHAND_QTY_DETAIL(Item_name, Subinventory_name);
                GridView_line.DataSource   = inventoryDC.getMaterial_io(Item_name, Subinventory_name);

                if (GridView_header.DataSource == null)
                {
                    PageUtil.showToast(this, "无相关库存总表信息");
                }
                GridView_header.DataBind();

                if (GridView_line.DataSource == null)
                {
                    PageUtil.showToast(this, "无相关库存明细表信息");
                }
                GridView_line.DataBind();
            }
            catch (Exception e1)
            {
                PageUtil.showToast(this, "查询失败");
            }
        }
Пример #2
0
        //清除查询结果
        protected void cleanMassage(object sender, EventArgs e)
        {
            GridView_header.DataSource = null;
            GridView_header.DataBind();

            GridView_line.DataSource = null;
            GridView_line.DataBind();
        }
Пример #3
0
        protected void Select(object sender, EventArgs e)
        {
            try
            {
                //string Invoice_no = DropDownList_invoice_no.SelectedValue.ToString();
                //string Item_name = DropDownList_item_name.SelectedValue.ToString();

                string Invoice_no = invoice_no.Value;
                string Item_name  = item_name.Value;


                //if (Invoice_no == "--选择调拨单号--")
                //    Invoice_no = "";
                //if (Item_name == "--选择料号--")
                //    Item_name = "";

                string FIRST_TIME = inpend.Value;
                if (FIRST_TIME == "")
                {
                    FIRST_TIME = "2016-07-01 00:00:00";
                }

                start_time = Convert.ToDateTime(FIRST_TIME);
                string LAST_TIME = inpstart.Value;
                end_time = Convert.ToDateTime(LAST_TIME);

                GridView_header.DataSource = invoiceDC.getExchangeHeaderBySome(Invoice_no, "");
                GridView_line.DataSource   = invoiceDC.getExchangeLineBySome(Invoice_no, Item_name, start_time, end_time);

                if (GridView_header.DataSource == null)
                {
                    PageUtil.showToast(this, "无相关调拨单头信息");
                }
                GridView_header.DataBind();

                if (GridView_line.DataSource == null)
                {
                    PageUtil.showToast(this, "无相关调拨单身信息");
                }
                GridView_line.DataBind();
            }
            catch (Exception e1)
            {
                PageUtil.showToast(this, "查询失败");
            }
        }