protected void btnSave_Click(object sender, EventArgs e)
    {
        CheckBillMaster billMaster = new CheckBillMaster();
        DataTable       tableCell  = objCell.QueryWarehouseCell("CELLCODE IN (" + Session["selectedCellCode"].ToString() + ")").Tables[0];

        billMaster.BatchInsertBill(tableCell, Session["EmployeeCode"].ToString());
        Response.Redirect("CheckBillConfirmPage.aspx");
    }
Beispiel #2
0
    protected void btnNext2_Click(object sender, EventArgs e)
    {
        //div01display = "none";
        //div02display = "block";
        WarehouseCell   objCell    = new WarehouseCell();
        CheckBillMaster billMaster = new CheckBillMaster();
        DataTable       tableCell  = objCell.QueryWarehouseCell("CURRENTPRODUCT IN (" + Session["selectedProductCode"].ToString() + ")").Tables[0];

        billMaster.BatchInsertBill(tableCell, Session["EmployeeCode"].ToString());
        JScript.Instance.ShowMessage(this.UpdatePanel1, "盘点单已经生成");
    }
Beispiel #3
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        CheckBillMaster billMaster = new CheckBillMaster();
        DataTable       tableCell  = null;

        if (cellCodes != "" && cellCodes != "''")
        {
            tableCell = objCell.QueryWarehouseCell(filter).Tables[0];
            billMaster.BatchInsertBill(tableCell, Session["EmployeeCode"].ToString());
            JScript.Instance.ShowMessage(this.UpdatePanel1, "盘点单已经生成");
        }
        else
        {
            JScript.Instance.ShowMessage(this.UpdatePanel1, "没有异动货位,请重新盘点!");
        }
    }
Beispiel #4
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        CheckBillMaster billMaster = new CheckBillMaster();
        DataTable       tableCell;

        if (cellCodes != "" && cellCodes != "''")
        {
            tableCell = objCell.QueryWarehouseCell(filter).Tables[0];
        }
        else
        {
            tableCell = objCell.QueryWarehouseCell("CELLCODE IN (" + Session["selectedCellCode"].ToString() + ") or SHELFCODE IN (" + Session["selectedShelfCode"].ToString() + ") and quantity>0").Tables[0];
        }
        if (tableCell.Rows.Count == 0)
        {
            JScript.Instance.ShowMessage(this.UpdatePanel1, "您所选的货位为空,请重新选择!");
        }
        else
        {
            billMaster.BatchInsertBill(tableCell, Session["EmployeeCode"].ToString());
            JScript.Instance.ShowMessage(this.UpdatePanel1, "盘点单已经生成");
        }
    }