public UCRepairProgressManager() { InitializeComponent(); SetTopbuttonShow(); CommonFuncCall.BindComBoxDataSource(cobStation, "sys_station_information", "全部"); //工位 UIAssistants.SetButtonStyle4QueryAndClear(btnQuery, btnClear); //设置查询按钮和清除按钮样式 }
private void UCMemberParaView_Load(object sender, EventArgs e) { CommonFuncCall.BindComBoxDataSource(cbomember_grade_id, "sys_member_grade", "请选择"); if (wStatus == WindowStatus.View) { string strSql = "select c.*,(select USER_NAME from sys_user where user_id =c.create_by )as create_Username , " + "(select USER_NAME from sys_user where user_id =c.update_by ) as update_username from tb_CustomerSer_member_setInfo c where c.setInfo_id='" + id + "'"; SQLObj sqlobj = new SQLObj(); sqlobj.cmdType = CommandType.Text; sqlobj.Param = new Dictionary <string, ParamObj>(); sqlobj.sqlString = strSql; DataSet ds = DBHelper.GetDataSet("查询会员参数设置信息", sqlobj); if (ds == null || ds.Tables[0].Rows.Count <= 0) { MessageBoxEx.Show("查询会员参数设置信息失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } DataTable dt = ds.Tables[0]; cbomember_grade_id.SelectedValue = dt.Rows[0]["member_grade_id"].ToString(); lblservice_project_discount.Text = dt.Rows[0]["service_project_discount"].ToString(); lblparts_discount.Text = dt.Rows[0]["parts_discount"].ToString(); lblSubscription_Ratio.Text = dt.Rows[0]["Subscription_Ratio"].ToString(); lblcreate_by.Text = dt.Rows[0]["create_Username"].ToString(); lblcreate_time.Text = Common.UtcLongToLocalDateTime(Convert.ToInt64(dt.Rows[0]["create_time"].ToString())).ToString(); lblupdate_by.Text = dt.Rows[0]["update_username"].ToString(); lblupdate_time.Text = Common.UtcLongToLocalDateTime(Convert.ToInt64(dt.Rows[0]["update_time"].ToString())).ToString(); ThreadPool.QueueUserWorkItem(new WaitCallback(this._LoadData)); } DataGridViewStyle.DataGridViewBgColor(dgvprojrct); DataGridViewStyle.DataGridViewBgColor(dgvparts); }
/// <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); } }
private void UCPayableDanDetail_Load(object sender, EventArgs e) { //绑定结算方式 CommonFuncCall.BindBalanceWayByItem(cboBalanceWay, "全部"); //绑定结算账户 CommonFuncCall.BindAccount(cboPaymentAccount, "全部"); //供应商类别 CommonFuncCall.BindComBoxDataSource(cboSup_type, "sys_supplier_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //绑定收款类型 DataSources.BindComBoxDataEnum(cboPaymentType, typeof(DataSources.EnumPaymentType), true); listNegative = new List <string>(); listNegative.Add("金额"); txtcSup_code.Text = supCode; txtSup_name.Caption = supName; cboSup_type.SelectedValue = supType; cboBalanceWay.SelectedValue = balanceWay; cboPaymentType.SelectedValue = payableType; cboPaymentAccount.SelectedValue = account; dicreate_time.StartDate = startDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = company; cboorg_id.SelectedValue = orgID; BindData(); }
private void UCReceivableDanDetail_Load(object sender, EventArgs e) { //绑定结算方式 CommonFuncCall.BindBalanceWayByItem(cboBalanceWay, "全部"); //绑定结算账户 CommonFuncCall.BindAccount(cboPaymentAccount, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //是否会员 DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true); //绑定收款类型 DataSources.BindComBoxDataEnum(cboPaymentType, typeof(DataSources.EnumReceivableType), true); listNegative = new List <string>(); listNegative.Add("金额"); txtcCust_code.Text = custCode; txtCust_name.Caption = custName; cboCust_type.SelectedValue = custType; cboIsMember.SelectedValue = is_member; cboBalanceWay.SelectedValue = balanceWay; cboPaymentType.SelectedValue = receivableType; cboPaymentAccount.SelectedValue = account; dicreate_time.StartDate = startDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = company; cboorg_id.SelectedValue = orgID; BindData(); }
private void UCReceivableDetail_Load(object sender, EventArgs e) { //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //是否会员 DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true); base.listNegative = new List <string>(); listNegative.Add("其中商业折扣"); //其中商业折扣 listNegative.Add("本期收款"); //本期收款 listNegative.Add("其中现金折扣"); //其中现金折扣 listNegative.Add("期末应收"); //期末应收 txtcCust_code.Text = custCode; txtCust_name.Caption = custName; cboCust_type.SelectedValue = custType; cboIsMember.SelectedValue = is_member; dicreate_time.StartDate = startDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = company; cboorg_id.SelectedValue = orgID; BindData(); //双击查看明细,要手动调用权限 if (this.Name != "CL_BusinessAnalysis_ARAP_ReceivableDet") { base.RoleButtonStstus("CL_BusinessAnalysis_ARAP_ReceivableDet"); } }
/// <summary> /// 窗体加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCPurchaseOrderManager_Load(object sender, EventArgs e) { base.SetBaseButtonStatus(); base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName); string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 UIAssistants.SetButtonStyle4QueryAndClear(btnSearch2, btnClear2); //设置查询按钮和清除按钮样式 dateTimeStart.Value = DateTime.Now; dateTimeEnd.Value = DateTime.Now; dateTimeStart2.Value = DateTime.Now; dateTimeEnd2.Value = DateTime.Now; //运输方式 CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部"); //结算方式 CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部"); CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindCompany(ddlddlCompany2, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); CommonFuncCall.BindFinishStatus(ddlFinishStatus, true); //CommonFuncCall.BindBillStatus(ddlBillStatus2, true); CommonFuncCall.BindFinishStatus(ddlBillStatus2, true); CommonFuncCall.BindIs_Gift(ddlis_gift2, true); BindgvPurchaseOrderList(); }
private void UCPersonnelAddOrEdit_Load(object sender, EventArgs e) { base.SetOpButtonVisible(uc.Name); base.SetBtnStatus(wStatus); // DataSources.BindComBoxDataEnum(cbojkzk, typeof(DataSources.Enumjkzk), false);//健康状况 DataSources.BindComBoxDataEnum(cbois_operator, typeof(DataSources.EnumYesNo), false); //是否操作员 CommonFuncCall.BindComBoxDataSource(cbonation, "sys_nation", "请选择"); //民族 CommonFuncCall.BindComBoxDataSource(cbosex, "sys_sex", "请选择"); //性别 CommonFuncCall.BindComBoxDataSource(cboidcard_type, "sys_certificates_type", "请选择"); //证件类型 CommonFuncCall.BindComBoxDataSource(cboeducation, "sys_education", "请选择"); //学历 CommonFuncCall.BindComBoxDataSource(cboposition, "sys_post", "请选择"); //岗位 CommonFuncCall.BindComBoxDataSource(cbolevel, "sys_personnel_level", "请选择"); //级别 if (wStatus == WindowStatus.Edit || wStatus == WindowStatus.Copy) { DataTable dt = DBHelper.GetTable("查询人员信息", GlobalStaticObj_Server.DbPrefix + GlobalStaticObj_Server.CommAccCode, "v_User", "*", "user_id='" + id + "'", "", ""); if (dt != null && dt.Rows.Count > 0) { BindControls(dt); } txtland_name.ReadOnly = true; } else { txtcom_name.Tag = comid; txtcom_name.Caption = comName; } }
/// <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); } }
//窗体加载 private void UCSaleProfitDetail_Load(object sender, EventArgs e) { //单据类型 CommonFuncCall.BindSaleOrderType(cboorder_type, true, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //是否会员 DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true); #region 初始化查询 txtcCust_code.Text = custCode; txtCust_name.Caption = custName; cboCust_type.SelectedValue = custType; cboIsMember.SelectedValue = isMember; cboorder_type.SelectedValue = orderType; cbowh_code.SelectedValue = whCode; txtcPartsType.Text = partsType; txtcVehicleModels.Text = vehicleModels; txtcparts_code.Text = partsCode; txtPartsName.Caption = partsName; txtdrawing_num.Caption = drawingNum; txtparts_brand.Caption = partsBrand; dicreate_time.StartDate = stratDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = commpany; cboorg_id.SelectedValue = orgID; chbGift.Checked = isGift; #endregion BindData(); }
/// <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(); }
private void UCPersonnelAddOrEdit_Load(object sender, EventArgs e) { base.SetOpButtonVisible(uc.Name); base.SetBtnStatus(wStatus); if (windowStatus == WindowStatus.View) { Common.SetControlEnable(this, false); } //加载公司 CommonFuncCall.BindCompanyComBox(this.cmbCompany, "请选择", ""); // DataSources.BindComBoxDataEnum(cbojkzk, typeof(DataSources.Enumjkzk), false);//健康状况 DataSources.BindComBoxDataEnum(cbois_operator, typeof(DataSources.EnumYesNo), false, false); //是否操作员 CommonFuncCall.BindRoleComBox(cmbRole, "", "请选择"); CommonFuncCall.BindComBoxDataSource(cbonation, "sys_nation", "请选择"); //民族 CommonFuncCall.BindComBoxDataSource(cbosex, "sys_sex", "请选择"); //性别 CommonFuncCall.BindComBoxDataSource(cboidcard_type, "sys_certificates_type", "请选择"); //证件类型 CommonFuncCall.BindComBoxDataSource(cboeducation, "sys_education", "请选择"); //学历 CommonFuncCall.BindComBoxDataSource(cboposition, "sys_post", "请选择"); //岗位 CommonFuncCall.BindComBoxDataSource(cbolevel, "sys_personnel_level", "请选择"); //级别 if (wStatus == WindowStatus.Edit || wStatus == WindowStatus.Copy) { txtland_name.ReadOnly = true; DataTable dt = DBHelper.GetTable("查询人员信息", GlobalStaticObj_Server.DbPrefix + GlobalStaticObj_Server.CommAccCode, "v_User", "*", "user_id='" + userid + "'", "", ""); if (dt != null && dt.Rows.Count > 0) { BindControls(dt); } } else { txtuser_code.Caption = CommonUtility.GetNewNo(SYSModel.DataSources.EnumProjectType.User); cmbCompany.SelectedIndex = 0; } }
/// <summary> 窗体加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UserControlSanBao_Load(object sender, EventArgs e) { //绑定紧急程度 //CommonFuncCall.BindYTEmergencyLevel(ddlemergency_level, true, "请选择"); CommonFuncCall.BindComBoxDataSource(ddlemergency_level, "emergency_level_yt", "请选择"); //绑定中心站/库 CommonFuncCall.BindYTCenterStation(ddlcenter_library, "请选择"); //要求发货方式 //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; } }
/// <summary> 加载窗体 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCSaleOrderManager_Load(object sender, EventArgs e) { //base.SetBaseButtonStatus(); //base.SetButtonVisiableManager(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 //列表的右键操作功能 base.SetContentMenuScrip(gvPurchaseOrderList); dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd.Value = DateTime.Now; //运输方式 CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部"); //结算方式 CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部"); CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); CommonFuncCall.BindOrderStatus(ddlState, true); BindgvSaleOrderList(); Choosefrm.CusNameChoose(txtcus_name, Choosefrm.delDataBack = null); }
//窗体加载 private void UCSaleBillingZongHe_Load(object sender, EventArgs e) { //单据类型 CommonFuncCall.BindSaleOrderType(cboorder_type, true, "全部"); //发票类型 CommonFuncCall.BindComBoxDataSource(cboreceipt_type, "sys_receipt_type", "全部"); //结算单位 CommonFuncCall.BindBalanceWayByItem(cbobalance_way, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //仓库 CommonFuncCall.BindWarehouse(cbowh_code, "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); #region 初始化查询 cboorder_type.SelectedValue = orderType; cboreceipt_type.SelectedValue = receiptType; cbobalance_way.SelectedValue = balanceWay; cbobalance_account.SelectedValue = balanceAccount; txtcCust_code.Text = supCode; txtCust_name.Caption = supName; cboCust_type.SelectedValue = supType; cbowh_code.SelectedValue = whCode; txtcparts_code.Text = partsCode; txtPartsName.Caption = partsName; txtdrawing_num.Caption = drawingNum; txtparts_brand.Caption = partsBrand; dicreate_time.StartDate = stratDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = commpany; cboorg_id.SelectedValue = orgID; #endregion BindData(); }
/// <summary> 窗体加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCSaleBillManangSearch_Load(object sender, EventArgs e) { //base.SetBaseButtonStatus(); //base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName); string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2); base.SetContentMenuScrip(gvPurchaseOrderList); base.SetContentMenuScrip(gvPurchaseList2); base.ClearAllToolStripItem(); base.AddToolStripItem(base.btnExport); base.AddToolStripItem(base.btnView); base.AddToolStripItem(base.btnSet); base.AddToolStripItem(base.btnPrint); UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式 UIAssistants.SetButtonStyle4QueryAndClear(btnSearch2, btnClear2); //设置查询按钮和清除按钮样式 dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd.Value = DateTime.Now; dateTimeStart2.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd2.Value = DateTime.Now; //单据类型 CommonFuncCall.BindSaleOrderType(ddlorder_type, true, "全部"); //运输方式 CommonFuncCall.BindComBoxDataSource(ddltrans_way, "sys_trans_mode", "全部"); //发票类型 CommonFuncCall.BindComBoxDataSource(ddlreceipt_type, "sys_receipt_type", "全部"); //结算方式 CommonFuncCall.BindBalanceWay(ddlbalance_way, "全部"); //结算账户 CommonFuncCall.BindAccount(ddlbalance_account, "", "全部"); //是否赠品 CommonFuncCall.BindIs_Gift(ddlis_gift2, true); //结算情况 CommonFuncCall.BindBalanceStatus(ddlbalance, true, "全部"); //出库状态 CommonFuncCall.BindOutStockStatus(ddlStockOutStatus2, true, "全部"); //公司ID CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindCompany(ddlCompany2, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); BindgvPurchaseOrderList(); Choosefrm.CusCodeChoose(txtcust_code, Choosefrm.delDataBack = CustName_DataBack); //按客户或配件信息查看---注册配件编码速查 Choosefrm.PartsCodeChoose(txtparts_code2, Choosefrm.delDataBack = PartsName_DataBack); //按客户或配件信息查看---注册配件类型速查 Choosefrm.PartsTypeNameChoose(txtparts_type2, Choosefrm.delDataBack = null); //按客户或配件信息查看---注册配件车型速查 Choosefrm.PartsCarModelNameChoose(txtparts_cartype2, Choosefrm.delDataBack = null); //按客户或配件信息查看---注册客户编码速查 Choosefrm.CusCodeChoose(txtcust_code2, Choosefrm.delDataBack = CustName2_DataBack); }
private void UCPayableDetail_Load(object sender, EventArgs e) { //供应商类别 CommonFuncCall.BindComBoxDataSource(cboSup_type, "sys_supplier_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); base.listNegative = new List <string>(); listNegative.Add("其中商业折扣"); //其中商业折扣 listNegative.Add("本期付款"); //本期付款 listNegative.Add("其中现金折扣"); //其中现金折扣 listNegative.Add("期末应付"); //期末应付 txtcSup_code.Text = supCode; txtSup_name.Caption = supName; cboSup_type.SelectedValue = supType; dicreate_time.StartDate = startDate; dicreate_time.EndDate = endDate; cboCompany.SelectedValue = company; cboorg_id.SelectedValue = orgID; BindData(); //双击查看明细,要手动调用权限 if (this.Name != "CL_BusinessAnalysis_ARAP_PayableDet") { base.RoleButtonStstus("CL_BusinessAnalysis_ARAP_PayableDet"); } }
//窗体加载 private void UCSaleOrderSummariz_Load(object sender, EventArgs e) { //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboSupType, "sys_customer_category", "全部"); BindData(); }
//窗体加载 private void UCPurchaseOrderSummariz_Load(object sender, EventArgs e) { //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //供应商类别 CommonFuncCall.BindComBoxDataSource(cboSupType, "sys_supplier_category", "全部"); BindData(); }
//页面加载 private void frmParts_Load(object sender, EventArgs e) { BindTree(); DataSources.BindComBoxDataEnum(cboDataSource, typeof(DataSources.EnumDataSources), true);//绑定数据源 CommonFuncCall.BindComBoxDataSource(cboPartsBrand, "sys_parts_brand", "全部"); CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); PartsLoad(); BindParts(tvPartsType.SelectedNode); }
//窗体加载 private void UCSaleOrderDetail_Load(object sender, EventArgs e) { //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //客户类别 CommonFuncCall.BindComBoxDataSource(cboCustType, "sys_customer_category", "全部"); #region 初始化查询 txtcCustCode.Text = supCode; txtCustName.Caption = supName; cboCompany.SelectedValue = company; cboOrg.SelectedValue = orgId; txtcPartsCode.Text = partsCode; txtPartsName.Caption = partsName; txtcPartsType.Text = partsType; txtDrawingNum.Caption = drawNum; txtPartsBrand.Caption = partsBrand; diCreateTime.StartDate = startDate; diCreateTime.EndDate = endDate; #endregion #region 显示合并表头 dgvReport.MergeColumnNames.Add("订货"); dgvReport.AddSpanHeader(16, 3, "订货"); dgvReport.MergeColumnNames.Add("已收"); dgvReport.AddSpanHeader(19, 3, "已收"); dgvReport.MergeColumnNames.Add("中止"); dgvReport.AddSpanHeader(22, 3, "中止"); dgvReport.MergeColumnNames.Add("未收"); dgvReport.AddSpanHeader(25, 3, "未收"); #endregion #region 报表合并表头 List <string> listDing = new List <string>(); listDing.Add("订货数量"); listDing.Add("订货辅助数量"); listDing.Add("订货金额"); AddSpanRows("订货", listDing); List <string> listYiShou = new List <string>(); listYiShou.Add("已收数量"); listYiShou.Add("已收辅助数量"); listYiShou.Add("已收金额"); AddSpanRows("已收", listYiShou); List <string> listZhongZhi = new List <string>(); listZhongZhi.Add("中止数量"); listZhongZhi.Add("中止辅助数量"); listZhongZhi.Add("中止金额"); AddSpanRows("中止", listZhongZhi); List <string> listWeiShou = new List <string>(); listWeiShou.Add("未收数量"); listWeiShou.Add("未收辅助数量"); listWeiShou.Add("未收金额"); AddSpanRows("未收", listWeiShou); #endregion BindData(); }
private void UCPurchasePayment_Load(object sender, EventArgs e) { //供应商类别 CommonFuncCall.BindComBoxDataSource(cboSup_type, "sys_supplier_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); listNegative = new List <string>(); listNegative.Add("sup_arrears");//供应商欠款 BindData(); }
/// <summary> /// 窗体加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCPurchaseOrderManager_Load(object sender, EventArgs e) { //base.SetBaseButtonStatus(); //base.SetButtonVisiableManagerSearch(); string[] NotReadOnlyColumnsName = new string[] { "colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName); string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" }; CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2); base.SetContentMenuScrip(gvPurchaseOrderList); base.SetContentMenuScrip(gvPurchaseList2); base.ClearAllToolStripItem(); base.AddToolStripItem(base.btnExport); base.AddToolStripItem(base.btnView); base.AddToolStripItem(base.btnSet); base.AddToolStripItem(base.btnPrint); //设置查询按钮和清除按钮样式 UIAssistants.SetButtonStyle4QueryAndClear(this, btnSearch, btnClear); //设置查询按钮和清除按钮样式 UIAssistants.SetButtonStyle4QueryAndClear(this, btnSearch2, btnClear2); dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd.Value = DateTime.Now; dateTimeStart2.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1); dateTimeEnd2.Value = DateTime.Now; //运输方式 CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部"); //结算方式 CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部"); CommonFuncCall.BindCompany(ddlCompany, "全部"); CommonFuncCall.BindCompany(ddlddlCompany2, "全部"); CommonFuncCall.BindDepartment(ddlDepartment, "", "全部"); CommonFuncCall.BindHandle(ddlhandle, "", "全部"); CommonFuncCall.BindFinishStatus(ddlFinishStatus, true); //CommonFuncCall.BindBillStatus(ddlBillStatus2, true); CommonFuncCall.BindFinishStatus(ddlBillStatus2, true); CommonFuncCall.BindIs_Gift(ddlis_gift2, true); BindgvPurchaseOrderList(); //按采购订单查看---注册供应商编码速查 Choosefrm.SupperNameChoose(txtsup_name, Choosefrm.delDataBack = null); //按供应商或配件信息查看---注册配件编码速查 Choosefrm.PartsCodeChoose(txtparts_code2, Choosefrm.delDataBack = PartsName_DataBack); //按供应商或配件信息查看---注册配件类型速查 Choosefrm.PartsTypeNameChoose(txtparts_type2, Choosefrm.delDataBack = null); //按供应商或配件信息查看---注册配件车型速查 Choosefrm.PartsCarModelNameChoose(txtparts_cartype2, Choosefrm.delDataBack = null); //按供应商或配件信息查看---注册供应商编码速查 Choosefrm.SupperCodeChoose(txtsup_code2, Choosefrm.delDataBack = SupName2_DataBack); }
private void InitData() { CommonFuncCall.BindComBoxDataSource(cbojkzk, "sys_health", "请选择"); //健康状况 DataSources.BindComBoxDataEnum(cbois_operator, typeof(DataSources.EnumYesNo), false); //是否操作员 CommonFuncCall.BindComBoxDataSource(cbonation, "sys_nation", "请选择"); //民族 CommonFuncCall.BindComBoxDataSource(cbosex, "sys_sex", "请选择"); //性别 CommonFuncCall.BindComBoxDataSource(cboidcard_type, "sys_certificates_type", "请选择"); //证件类型 CommonFuncCall.BindComBoxDataSource(cboeducation, "sys_education", "请选择"); //学历 CommonFuncCall.BindComBoxDataSource(cboposition, "sys_post", "请选择"); //岗位 CommonFuncCall.BindComBoxDataSource(cbolevel, "sys_personnel_level", "请选择"); //级别 }
private void UCPayableAbove_Load(object sender, EventArgs e) { //供应商类别 CommonFuncCall.BindComBoxDataSource(cboSup_type, "sys_supplier_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); listNegative = new List <string>(); listNegative.Add("应付款"); BindData(); }
private void UCFinanceBPara_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name); this.btnDelete.Visible = false; this.btnStatus.Visible = false; this.btnSave.Visible = true; this.btnCancel.Visible = true; CommonFuncCall.BindComBoxDataSource(cbocurrency, "sys_currency", "请选择"); ThreadPool.QueueUserWorkItem(new WaitCallback(this._ShowData)); }
private void UCReceivableAbove_Load(object sender, EventArgs e) { //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //是否会员 DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true); listNegative = new List <string>(); listNegative.Add("本期发生");//客户应收款 BindData(); }
public frmSupplier() { InitializeComponent(); //绑定企业性质类型 CommonFuncCall.BindComBoxDataSource(ddlCompanyNature, "sys_enterprise_property", "全部"); //绑定企业性质类型 CommonCtrl.BindComboBoxByDictionarr(unit_properties, "sys_enterprise_property"); CommonCtrl.BindComboBoxByDictionarr(sup_type, "sys_supplier_category"); CreatPropertiesTree(); ddlCompanyNature.SelectedIndex = 0; }
//窗体加载 private void UCSalePerformance_Load(object sender, EventArgs e) { //客户类别 CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); //是否会员 DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true); base.listNegative = new List <string>(); base.listNegative.Add("退货金额"); BindData(); }
private void UCPayableSummariz_Load(object sender, EventArgs e) { //供应商类别 CommonFuncCall.BindComBoxDataSource(cboSup_type, "sys_supplier_category", "全部"); //公司 CommonFuncCall.BindCompany(cboCompany, "全部"); base.listNegative = new List <string>(); base.listNegative.Add("期初应付款"); //期初应付款 listNegative.Add("其中商业折扣"); //其中商业折扣 listNegative.Add("本期承收应付款"); //本期承收应付款 listNegative.Add("期末结存应付额"); //期末结存应付额 BindData(); }