Esempio n. 1
0
    /// <summary>
    /// 签收
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public void btnSing_Click(int KeyID)
    {
        Hi.BLL.DIS_Order   OrderBll   = new Hi.BLL.DIS_Order();
        Hi.Model.DIS_Order OrderModel = OrderBll.GetModel(KeyID);

        if (OrderModel.OState == (int)Enums.OrderState.已发货 && OrderModel.ReturnState == (int)Enums.ReturnState.未退货)
        {
            Hi.Model.DIS_OrderOut OutModel = new Hi.BLL.DIS_OrderOut().GetOutModel(KeyID);

            OutModel.SignDate   = DateTime.Now;
            OutModel.SignRemark = "";
            OutModel.SignUser   = this.UserName;
            OutModel.SignUserId = this.UserID;
            OutModel.IsSign     = 1;
            OutModel.ts         = DateTime.Now;
            OutModel.modifyuser = this.UserID;

            if (OrderInfoType.SignOrder(OutModel, OrderModel) > 0)
            {
                Utils.AddSysBusinessLog(this.CompID, "Order", KeyID.ToString(), "订单签收", "");
                new Common().GetWxService("3", KeyID.ToString(), "1");
                string str = "\"str\":true";
                str = "{" + str + "}";
                Response.Write(str);
                Response.End();
                //Bind();
            }
        }
    }
Esempio n. 2
0
    /// <summary>
    /// 签收
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnSing_Click(object sender, EventArgs e)
    {
        Hi.Model.DIS_Order OrderModel = OrderBll.GetModel(KeyID);

        if (OrderModel.OState == (int)Enums.OrderState.已发货 && OrderModel.ReturnState == (int)Enums.ReturnState.未退货)
        {
            Hi.Model.DIS_OrderOut OutModel = new Hi.BLL.DIS_OrderOut().GetOutModel(KeyID);

            OutModel.SignDate   = DateTime.Now;
            OutModel.SignRemark = "";
            OutModel.SignUser   = Common.GetUserName(this.UserID);
            OutModel.SignUserId = this.UserID;
            OutModel.IsSign     = 1;
            OutModel.ts         = DateTime.Now;
            OutModel.modifyuser = this.UserID;

            if (OrderInfoType.SignOrder(OutModel, OrderModel) > 0)
            {
                Utils.AddSysBusinessLog(this.CompID, "Order", KeyID.ToString(), "订单签收", "");
                new Common().GetWxService("3", KeyID.ToString(), "1");
                if (!string.IsNullOrEmpty(Request["type1"]) && Request["type1"].ToString() == "ReceivingList")
                {
                    Response.Redirect("receivinglist.aspx");
                }
                Response.Redirect("neworder/orderdetail.aspx?KeyID=" + Common.DesEncrypt(KeyID.ToString(), Common.EncryptKey));
                //Bind();
            }
        }
    }