Exemplo n.º 1
0
        private void InitDropDownList()
        {
            HXPMSPJ.BLL.TB_S_STAFF staff = new HXPMSPJ.BLL.TB_S_STAFF();
            DataTable dt = staff.GetList(" JOB_ID = '09'").Tables[0];

            DropDownListSALESCONTRACTNO.DataSource     = dt;
            DropDownListSALESCONTRACTNO.DataTextField  = "STAFF_NAME";
            DropDownListSALESCONTRACTNO.DataValueField = "STAFF_ID";
            DropDownListSALESCONTRACTNO.DataBind();
            //订单状态
            DropDownListORDERSTATUS.DataSource     = order_lv1_bll.GetOrderStatu();
            DropDownListORDERSTATUS.DataTextField  = "DICT_NAME_CN";
            DropDownListORDERSTATUS.DataValueField = "DICT_ID";
            DropDownListORDERSTATUS.DataBind();

            DropDownListORDERTYPE.DataSource     = order_lv1_bll.GetOrderType();
            DropDownListORDERTYPE.DataTextField  = "DICT_NAME_CN";
            DropDownListORDERTYPE.DataValueField = "DICT_ID";
            DropDownListORDERTYPE.DataBind();

            DropDownListSALETYPE.DataSource     = order_lv1_bll.GetOrderSaleType();
            DropDownListSALETYPE.DataTextField  = "DICT_NAME_CN";
            DropDownListSALETYPE.DataValueField = "DICT_ID";
            DropDownListSALETYPE.DataBind();
        }
Exemplo n.º 2
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);
        }