コード例 #1
0
        private void InitUI()
        {
            DropDownListORDERSTATUS.DataSource     = order_lv1_bll.GetOrderStatu();
            DropDownListORDERSTATUS.DataTextField  = "DICT_NAME_CN";
            DropDownListORDERSTATUS.DataValueField = "DICT_ID";
            DropDownListORDERSTATUS.DataBind();

            string          OrderLevel4ID = Request.QueryString["orderid4"].ToString();
            TB_ORDER_LEVEL4 order_lv4     = order_lv4_bll.GetOrderLevel4(OrderLevel4ID);
            TB_ORDER_LEVEL3 order_lv3     = order_lv3_bll.GetOrderProduce(order_lv4.PRODUCEID);
            TB_ORDER_LEVEL2 order_lv2     = order_lv2_bll.GetOrderItemByID(order_lv3.ORDERITEMID);

            TextBoxOrderItem.Text   = order_lv2.ITEMNO;
            LabelOrderLv4no.Text    = order_lv4.ORDER_LV4_NO;
            TextBoxOrderLv4.Text    = order_lv4.ORDER_LV4_NO.Replace(order_lv2.ITEMNO.Trim(), "");
            TextBoxOrderLv4Num.Text = order_lv4.PRODUCE_LV4_NUM.ToString();
            DropDownListORDERSTATUS.SelectedValue = order_lv4.ORDERSTATE;
            TextBoxStateChangeTime.Text           = order_lv4.STATE_CHANGETIME.ToString("yyyy-MM-dd");


            DataTable dt = model_scheme_bll.GetModelSchemeAll("");

            DropDownListModelNo.DataSource     = dt;
            DropDownListModelNo.DataValueField = "modelid";
            DropDownListModelNo.DataTextField  = "modelno";
            DropDownListModelNo.DataBind();

            InitListBox(OrderLevel4ID);
        }
コード例 #2
0
        private void InitUI()
        {
            TextBoxOrderItem.ReadOnly = true;
            string orderid3 = Request.QueryString["orderid3"].ToString();
            TB_ORDER_LEVEL3 order_lv3 = order_lv3_bll.GetOrderProduce(orderid3);
            TB_ORDER_LEVEL2 order_lv2 = order_lv2_bll.GetOrderItemByID(order_lv3.ORDERITEMID);
            TextBoxOrderItem.Text = order_lv2.ITEMNO;
            LabelOrderLv4no.Text = order_lv2.ITEMNO;
            TextBoxOrderLv4.Text = "";
            TextBoxOrderLv4Num.Text = "0";

            DataTable dt = model_scheme_bll.GetModelSchemeAll("");
            DropDownListModelNo.DataSource = dt;
            DropDownListModelNo.DataValueField = "modelid";
            DropDownListModelNo.DataTextField = "modelno";
            DropDownListModelNo.DataBind();
        }