Ejemplo n.º 1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        SalesDispatchDAL sdal = new SalesDispatchDAL();

        sdal.sentUpdate(int.Parse(OrderID.Text.ToString()), DateTime.Now.ToString("yyyy-MM-dd"), 3, " 问题描述:" + issueInfo.Text.ToString(), float.Parse("0.00"));


        VSalesDispatch vs = Leyp.SQLServerDAL.Sales.Factory.getSalesDispatchDAL().getByID(int.Parse(OrderID.Text.ToString()));

        //在接着得到销售订单

        VSalesOrder vso = Leyp.SQLServerDAL.Sales.Factory.getSalesOrderDAL().getByID(vs.SalesOrderID);

        //得到下单用户

        string username = vso.UserName;



        ServiceInfo s = new ServiceInfo();

        s.CreateDate   = DateTime.Now.ToString("yyyy-MM-dd");
        s.Content      = "订单号:" + vs.SalesOrderID + "配送错误,请您查询。原因是:" + issueInfo.Text;
        s.ServiceTitle = "配送问题--" + DateTime.Now.ToString("yyyy-MM-dd");
        s.UserName     = username;
        s.TypeID       = 2;
        if (Leyp.SQLServerDAL.Factory.getServiceInfoDAL().insertNewEntity(s))
        {
            Jscript.RefreshParent("MySalesDispatch.aspx");
            Jscript.CloseWindow();
        }
    }
Ejemplo n.º 2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string str = Label1.Text.ToString();

        string[]         a   = str.Split('#');
        SalesDispatchDAL sal = new SalesDispatchDAL();

        for (int i = 0; i < a.Length; i++)
        {
            sal.updataPrintFlag(int.Parse(a[i].ToString()));
        }

        Button1.Text    = "已经处理完成";
        Button1.Enabled = false;
    }