/// <summary> /// 窗体初始化加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCRequisitionManager_Load(object sender, EventArgs e) { try { //获取默认系统时间 dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString(); dateTimeEnd.Value = DateTime.Now.ToString(); //单据类型 CommonFuncCall.BindAllotBillType(ComBorder_type_name, true, "请选择");//调拨单类型 //开单类型 CommonFuncCall.BindAllocationBillingType(ComBcall_out_wh_name, true, "请选择"); //获取仓库名称 CommonFuncCall.BindWarehouse(ComBcall_in_wh_name, "请选择"); CommonFuncCall.BindWarehouse(ComBcall_out_wh_name, "请选择"); // 调入机构 CommonFuncCall.BindCompany(ComBcall_in_org_name, "全部"); //运输方式 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "全部"); //单据状态 CommonFuncCall.BindOrderStatus(Comborder_status_name, true); //公司 CommonFuncCall.BindCompany(ComBcom_name, "全部"); //部门 CommonFuncCall.BindDepartment(ComBorg_name, "", "全部"); //经办人 CommonFuncCall.BindHandle(ComBhandle_name, "", "全部"); } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }
/// <summary> /// 窗体初始加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCRequisitionAddOrEdit_Load(object sender, EventArgs e) { try { CommonFuncCall.BindAllotBillType(Comborder_type_name, true, "请选择"); //调拨单类型 CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "请选择"); //运输方式 CommonFuncCall.BindCompany(combcall_out_org_name, "请选择"); //调出机构 CommonFuncCall.BindCompany(combcall_in_org_name, "请选择"); //调入机构 CommonFuncCall.BindWarehouse(combcall_out_wh_name, "请选择"); //调出仓库 CommonFuncCall.BindWarehouse(combcall_in_wh_name, "请选择"); //调入仓库 BrandTable = CommonFuncCall.BindDicDataSource("sys_parts_brand"); //获得品牌名称 if (status == WindowStatus.Edit || status == WindowStatus.Copy) { GetBillHeadEndMessage(AllotBillId); //获取单据头尾信息 GetBillPartsMsg(AllotBillId); //获取单据配件信息 } else if (status == WindowStatus.Add || status == WindowStatus.Copy) { txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态 } } catch (Exception ex) { MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question); } }