⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 po09.aspx.cs

📁 简单的cI真的是很简单 你想要就下载吧
💻 CS
📖 第 1 页 / 共 2 页
字号:

        }
        #endregion


    }
    #endregion

    #region  显示备货信息
    public void showStoreInfo()
    {

        this.TbShowOrder.Rows[8].Visible = false;
        this.TbShowOrder.Rows[9].Visible = false;
        this.TbShowOrder.Rows[10].Visible = false;
        this.TbShowOrder.Rows[11].Visible =false;
        this.TbShowOrder.Rows[12].Visible=false;
        this.TbShowOrder.Rows[13].Visible=false;
        this.TbShowOrder.Rows[14].Visible=false;
       
    }
    #endregion

    #region   显示出货信息
    public void showTransportInfo() 
    {

        //this.TbShowOrder.Rows[9].Visible = true;
        //this.TbShowOrder.Rows[10].Visible = true;
        //this.TbShowOrder.Rows[11].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[0].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[1].Visible = true;
        this.TbShowOrder.Rows[12].Cells[2].Visible = false;
        this.TbShowOrder.Rows[12].Cells[3].Visible = false;
        this.TbShowOrder.Rows[13].Visible = false;
        this.TbShowOrder.Rows[13].Visible = false;
        this.TbShowOrder.Rows[14].Visible = false;
       
       
    
    }
    #endregion

    #region  显示收货信息
    public void showReceiveInfo() 
    {
        //this.TbShowOrder.Rows[9].Visible = true;
        //this.TbShowOrder.Rows[10].Visible = true;
        //this.TbShowOrder.Rows[11].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[0].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[1].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[2].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[3].Visible = true;
        //this.TbShowOrder.Rows[13].Visible = true;
        this.TbShowOrder.Rows[14].Visible = false;
       
    }
    #endregion

    #region  显示关闭信息
    public void showCloseInfo() 
    {
        //this.TbShowOrder.Rows[9].Visible = true;
        //this.TbShowOrder.Rows[10].Visible = true;
        //this.TbShowOrder.Rows[11].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[0].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[1].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[2].Visible = true;
        //this.TbShowOrder.Rows[12].Cells[3].Visible = true;
        //this.TbShowOrder.Rows[13].Visible = true;
        //this.TbShowOrder.Rows[14].Visible = true;
        this.TbShowOrder.Visible = true;
       
       
    }
    #endregion

    #region 给order表传值



    public void ShowOrder(       int OrgID,
                              string OrgName,
                                int OrderID,
                                int CustomerID,
                            string CustomerName,
                                int EmployeeID,
                           DateTime OrderDate,
                           DateTime RequireDate,

                            string  OrderNote, 
                                int OrderCreaterID,
                             string orderCreater,
                             string Storehouser,
                                int StorehouseAccepterID,
                             string StorehouseNote,
                            DateTime StorehouseReadyDate,

                             string Carrier,
                                int TransportOrderID,
                               int TransportInfoInputerID,
                             string Transporter,
                             string TransportNote,
                           DateTime TransportDate,    
                           DateTime ArrivalDate,
                              string Receiver,
                             int ReceiveInfoInputerID,
                             string ReceiveInfoInputer,
                             string ReceiveNote, 
                                 int OrderCloseAccepterID ,
                           DateTime OrderCloseDate         
                          )
    {
        this.TbShowOrder.Rows[0].Cells[1].Text = OrgID.ToString();
        this.TbShowOrder.Rows[0].Cells[3].Text = OrgName;

        this.TbShowOrder.Rows[2].Cells[0].Text = OrderID.ToString();
        this.TbShowOrder.Rows[2].Cells[1].Text = CustomerID.ToString();
        this.TbShowOrder.Rows[2].Cells[2].Text = CustomerName;
        this.TbShowOrder.Rows[2].Cells[3].Text = EmployeeID.ToString();

        this.TbShowOrder.Rows[4].Cells[0].Text = OrderDate.ToString();
        this.TbShowOrder.Rows[4].Cells[1].Text = RequireDate.ToString();
        this.TbShowOrder.Rows[4].Cells[2].Text = OrderCreaterID.ToString();
        this.TbShowOrder.Rows[4].Cells[3].Text = orderCreater;

        this.TbShowOrder.Rows[5].Cells[1].Text = OrderNote;
        //备货
        this.TbShowOrder.Rows[7].Cells[0].Text = Storehouser;
        this.TbShowOrder.Rows[7].Cells[1].Text = StorehouseAccepterID.ToString();
        this.TbShowOrder.Rows[7].Cells[2].Text = StorehouseNote;
        this.TbShowOrder.Rows[7].Cells[3].Text = StorehouseReadyDate.ToString();
        //出货
        this.TbShowOrder.Rows[9].Cells[0].Text = Carrier;
        this.TbShowOrder.Rows[9].Cells[0].Text = TransportOrderID.ToString();
        this.TbShowOrder.Rows[9].Cells[0].Text = TransportInfoInputerID.ToString();
        this.TbShowOrder.Rows[9].Cells[0].Text = Transporter;

        this.TbShowOrder.Rows[10].Cells[1].Text = TransportNote;

        this.TbShowOrder.Rows[12].Cells[0].Text = TransportDate.ToString();
        this.TbShowOrder.Rows[12].Cells[1].Text = ArrivalDate.ToString();
        //收货
        this.TbShowOrder.Rows[12].Cells[2].Text = Receiver;
        this.TbShowOrder.Rows[12].Cells[3].Text = ReceiveInfoInputerID.ToString();

        this.TbShowOrder.Rows[13].Cells[1].Text = ReceiveInfoInputer;
        this.TbShowOrder.Rows[13].Cells[3].Text = ReceiveNote;
        //关闭
        this.TbShowOrder.Rows[14].Cells[1].Text = OrderCloseAccepterID.ToString();
        this.TbShowOrder.Rows[14].Cells[3].Text = OrderCloseDate.ToString();
    }
    #endregion

    #region 给product表传值



    public void ShowProduct(int _orderID,
                            int _prdID,
                            string _prdname,
                            decimal _price,
                            int _count,
                            double _discount,
                            decimal _toatal
                           )

    {
        this.TbShowPrd.Rows[1].Cells[0].Text = _orderID.ToString();
        this.TbShowPrd.Rows[1].Cells[1].Text = _prdID.ToString();
        this.TbShowPrd.Rows[1].Cells[2].Text = _prdname;

        this.TbShowPrd.Rows[3].Cells[0].Text = _price.ToString();
        this.TbShowPrd.Rows[3].Cells[1].Text = _count.ToString();
        this.TbShowPrd.Rows[3].Cells[2].Text = _discount.ToString();
        this.TbShowPrd.Rows[4].Cells[1].Text = _toatal.ToString();

       
    }
    #endregion

    #region   照会信息提交事件
    protected void btnConfirm_Click(object sender, EventArgs e)

    {
        // 提交商品修改记录
        if (tranferP07.ProductID!= "")
        {
            //if (BLorder.UpdateOrdDetails( OrderID,
            //                              _prdID,
            //                              _price,
            //                              _count,
            //                              _discount) == true)
            if (BLorder.UpdateOrdDetails(Convert.ToInt32(tranferP07.OrderID),
                                         Convert.ToInt32(tranferP07.ProductID),
                                          Convert.ToDecimal(tranferP07.UnitPrice),
                                           Convert.ToInt32(tranferP07.Quantity),
                                          Convert.ToDouble(tranferP07.Discount)
                                           ) == true) 
            {
                Response.Write("<script>alert('商品信息修改成功!')</script>");
            }
            else Response.Write("<script>alert('Sorry,商品信息提交失败!')</script>");

        }
        else
        {
            //提交订单修改记录
            if (BLorder.UpdateOrder(Convert.ToInt32(tranferP07.CustomerID),
                                    Convert.ToInt32(tranferP07.EmployeeID),
                                     Convert.ToDateTime(tranferP07.OrderCreateTime),
                                     Convert.ToDateTime(tranferP07.RequiredDate),
                                     tranferP07.OrderNote,
                                     Convert.ToInt32(tranferP07.OrderCreaterID),
                                     Convert.ToDateTime(tranferP07.StorehouseReadyDate),
                                     Convert.ToInt32(tranferP07.StoreHourserID),
                                     tranferP07.StorehouseNote,
                                     tranferP07.Carrier,
                                      Convert.ToInt32(tranferP07.TransportOrderID),
                                     Convert.ToDateTime(tranferP07.TransportDate),
                                     tranferP07.TransportNote,
                                     Convert.ToInt32(tranferP07.TransportInfoInputer),
                                     Convert.ToDateTime(tranferP07.ArrivalDate),
                                     tranferP07.Receiver,
                                     tranferP07.ReceiveNote,
                                     Convert.ToInt32(tranferP07.ReceiveInfoInputerID),
                                      Convert.ToDateTime(tranferP07.OrderCloseDate),
                                      Convert.ToInt32(tranferP07.OrderCloseAccepterID),
                                     Convert.ToInt32(tranferP07.OrgID),
                                     Convert.ToInt32(tranferP07.OrderID)
                                      )==true)
            {
                Response.Write("<script>alert('订单信息修改成功!')</script>");
            }
            else Response.Write("<script>alert('Sorry,订单信息提交失败!')</script>");
        }

    }
    #endregion
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -