/// <summary> 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UserControlXuQiu_Load(object sender, EventArgs e)
        {
            //绑定紧急程度
            //CommonFuncCall.BindYTEmergencyLevel(ddlemergency_level, true, "请选择");
            CommonFuncCall.BindComBoxDataSource(ddlemergency_level, "emergency_level_yt", "请选择");
            //绑定中心站/库
            CommonFuncCall.BindYTCenterStation(ddlcenter_library, "请选择");
            //调拨类型
            CommonFuncCall.BindYTAllotType(ddlallot_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 UCYTManager_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManager();
            dateTimeReqDeliveryTimeStart.Value = DateTime.Now;
            dateTimeReqDeliveryTimeEnd.Value   = DateTime.Now;

            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvYTPurchaseOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式
            //列表的右键操作功能
            base.SetContentMenuScrip(gvYTPurchaseOrderList);
            //绑定宇通采购订单类型
            CommonFuncCall.BindYTPurchaseOrderType(ddlorder_type, true, "全部");
            //绑定紧急程度
            CommonFuncCall.BindComBoxDataSource(ddlemergency_level, "emergency_level_yt", "全部");
            //调拨类型
            CommonFuncCall.BindYTAllotType(ddlallot_type, true, "全部");

            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");
            CommonFuncCall.BindOrderStatus(ddlorder_status, true);


            BindgvYTPurchaseOrderList();
        }
 /// <summary> 窗体加载
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UserControlXuQiu_Load(object sender, EventArgs e)
 {
     //绑定紧急程度
     //CommonFuncCall.BindYTEmergencyLevel(ddlemergency_level, true, "请选择");
     CommonFuncCall.BindComBoxDataSource(ddlemergency_level, "emergency_level_yt", "请选择");
     //绑定中心站/库
     CommonFuncCall.BindYTCenterStation(ddlcenter_library, "请选择");
     //调拨类型
     CommonFuncCall.BindYTAllotType(ddlallot_type, true, "请选择");
     //要求发货方式
     //CommonFuncCall.BindYTReqdelivery(ddlreq_delivery, true, "请选择");
     CommonFuncCall.BindComBoxDataSource(ddlreq_delivery, "delivery_requirements_yt", "请选择");
     //加载收货人信息
     CommonFuncCall.BindUser(ddlconsignee_code, true, "请选择");
 }