Ejemplo n.º 1
0
    protected void btnConfirmWX_Click(object sender, EventArgs e)
    {
        AllocationBllAction allocationBllAction = new AllocationBllAction();
        string text = (this.HdnAcode.Value == "") ? this.HdnAcodeList.Value : this.HdnAcode.Value;
        int    num  = allocationBllAction.InDepositoryConfirm(text, this.Session["yhdm"].ToString());

        if (num != 1)
        {
            this.RegisterStartupScript("alert1", "<script>alert('\\n系统提示:\\n\\n调拨失败!该用户没有权限接收');</script>");
            return;
        }
        DataTable allocationList = allocationBllAction.GetAllocationList("acode='" + text + "'");
        string    title          = "接收提醒";
        string    content        = text + "调拨单已被" + WebUtil.GetUserNames(base.UserCode) + "接收";
        DataRow   dataRow        = allocationList.Rows[0];
        string    userCode       = dataRow["OutAllocationPerson"].ToString();
        string    dbTable        = "Sm_Allocation";
        string    dbColumn       = "acode";
        string    key            = text;
        string    uri            = string.Concat(new string[]
        {
            "/StockManage/Allocation/AuditPage.aspx?ic=",
            dataRow["aid"].ToString(),
            "&acode=",
            text,
            "&allocationType=in"
        });

        Warning.AddWarning(title, content, userCode, dbTable, dbColumn, key, uri);
        this.RegisterStartupScript("alert", "<script>alert('\\n系统提示:\\n\\n调拨成功!');</script>");
        base.RegisterScript("location='ConfirmInDepositoryWX.aspx'");
    }
Ejemplo n.º 2
0
    protected void Bind_GVAllocationList()
    {
        AllocationBllAction allocationBllAction = new AllocationBllAction();
        DataTable           allocationList      = allocationBllAction.GetAllocationList(" 1 = 1 order by intime desc");

        if (allocationList != null && allocationList.Rows.Count > NBasePage.pagesize)
        {
            this.HdnIsPage.Value = "1";
        }
        Common2.BindGvTable(allocationList, this.GVAllocationList, false);
    }
Ejemplo n.º 3
0
    protected void Bind_GVAllocationList()
    {
        AllocationBllAction allocationBllAction = new AllocationBllAction();
        StringBuilder       stringBuilder       = new StringBuilder();

        stringBuilder.Append(" flowstate!=-3 and flowstate=1 ");
        stringBuilder.Append(" and isouta=1 and InAllocationPerson='" + base.UserCode + "' ");
        stringBuilder.Append(" order by intime desc ");
        DataTable allocationList = allocationBllAction.GetAllocationList(stringBuilder.ToString());

        GridViewUtility.DataBind(this.GVAllocationList, allocationList);
    }
Ejemplo n.º 4
0
    protected void btnSertch_Click(object sender, EventArgs e)
    {
        string text = " acode like '%" + this.txtAllocationBill.Text.Trim() + "%'";

        if (!string.IsNullOrEmpty(this.txtAllocationDateStarts.Text.Trim()))
        {
            text = text + " and intime >='" + this.txtAllocationDateStarts.Text.Trim() + "'";
        }
        if (!string.IsNullOrEmpty(this.txtAllocationDateEnd.Text.Trim()))
        {
            text = text + " and intime < '" + Convert.ToDateTime(this.txtAllocationDateEnd.Text.Trim()).AddDays(1.0).ToString() + "'";
        }
        this.GVAllocationList.AllowPaging = true;
        AllocationBllAction allocationBllAction = new AllocationBllAction();

        this.GVAllocationList.DataSource = allocationBllAction.GetAllocationList(text);
        this.GVAllocationList.DataBind();
    }