예제 #1
0
        /// <summary> 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UserControlShengJi_Load(object sender, EventArgs e)
        {
            //绑定紧急程度
            //CommonFuncCall.BindYTEmergencyLevel(ddlemergency_level, true, "请选择");
            CommonFuncCall.BindComBoxDataSource(ddlemergency_level, "emergency_level_yt", "请选择");
            //产品改进通知号
            CommonFuncCall.BindYTProduct_No(ddlproduct_notice_num, "请选择");
            //活动类型
            CommonFuncCall.BindYTActivityType(ddlactivity_type, true, "请选择");
            //要求发货方式
            //CommonFuncCall.BindYTReqdelivery(ddlreq_delivery, true, "请选择");
            CommonFuncCall.BindComBoxDataSource(ddlreq_delivery, "delivery_requirements_yt", "请选择");
            //加载收货人信息
            CommonFuncCall.BindUser(ddlconsignee_code, true, "请选择");
            //获取收货人,收货人手机,收货人电话,收货地址
            string com_tel    = string.Empty;
            string com_phone  = string.Empty;
            string street     = string.Empty;
            string com_person = string.Empty;

            CommonFuncCall.GetStationInfo(ref com_tel, ref com_phone, ref street, ref com_person);
            txtdelivery_address.MaxLengh = 30;
            txtdelivery_address.Caption  = street;
            if (ddlconsignee_code.Items.Count > 1)
            {
                ddlconsignee_code.SelectedIndex = 1;
                CommonFuncCall.GetUserPhone(ddlconsignee_code.SelectedValue.ToString(), ref com_phone, ref com_tel);
                txtconsignee_tel.Caption   = com_tel;
                txtconsignee_phone.Caption = com_phone;
            }
        }
예제 #2
0
 /// <summary> 窗体加载
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UserControlShengJi_Load(object sender, EventArgs e)
 {
     //绑定紧急程度
     //CommonFuncCall.BindYTEmergencyLevel(ddlemergency_level, true, "请选择");
     CommonFuncCall.BindComBoxDataSource(ddlemergency_level, "emergency_level_yt", "请选择");
     //产品改进通知号
     CommonFuncCall.BindYTProduct_No(ddlproduct_notice_num, "请选择");
     //活动类型
     CommonFuncCall.BindYTActivityType(ddlactivity_type, true, "请选择");
     //要求发货方式
     //CommonFuncCall.BindYTReqdelivery(ddlreq_delivery, true, "请选择");
     CommonFuncCall.BindComBoxDataSource(ddlreq_delivery, "delivery_requirements_yt", "请选择");
     //加载收货人信息
     CommonFuncCall.BindUser(ddlconsignee_code, true, "请选择");
 }