private void MemberCardProvide_Load(object sender, System.EventArgs e) { ClientHelper.BindEnterpriseType(cmbEnterpriseType); ClientHelper.BindTrade(cmbTrade); ClientHelper.BindSales(cmbSales); //, this.oper.cnnOperID.ToString()); ClientHelper.BindSales(cmbHandleMan); //, this.oper.cnnOperID.ToString()); ClientHelper.BindSales(cmbCustomerService); //, this.oper.cnnOperID.ToString()); }
private void FMemberFileModify_Load(object sender, System.EventArgs e) { ClientHelper.BindEnterpriseType(cmbEnterpriseType); ClientHelper.BindTrade(cmbTrade); chkBeginDate.Checked = true; chkEndDate.Checked = true; cmdBeginDate.MaskInput = "yyyy-mm-dd hh:mm"; cmbEndDate.MaskInput = "yyyy-mm-dd hh:mm"; cmdBeginDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00"; cmbEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59"; btnModify.Enabled = false; ClientHelper.BindSales(cmbSales); //, this.oper.cnnOperID.ToString()); ClientHelper.BindSales(cmbHandleMan); //, this.oper.cnnOperID.ToString()); ClientHelper.BindSales(cmbCustomerService); //, this.oper.cnnOperID.ToString()); }
private void MemberFileQuery_Load(object sender, System.EventArgs e) { //绑定会员状态 DataTable dtState = new DataTable(); //dtState.Columns.Add("cnvcState"); dtState.Columns.Add("会员状态"); DataRow drState0 = dtState.NewRow(); drState0["会员状态"] = ConstApp.Card_State_InUse; dtState.Rows.Add(drState0); DataRow drState1 = dtState.NewRow(); drState1["会员状态"] = ConstApp.Card_State_InLose; dtState.Rows.Add(drState1); DataRow drState2 = dtState.NewRow(); drState2["会员状态"] = ConstApp.Card_State_InAdd; dtState.Rows.Add(drState2); DataRow drState3 = dtState.NewRow(); drState3["会员状态"] = ConstApp.Card_State_InCallBack; dtState.Rows.Add(drState3); DataRow drState4 = dtState.NewRow(); drState4["会员状态"] = ConstApp.Card_State_NoCard; dtState.Rows.Add(drState4); cmbState.DataSource = dtState; cmbState.DataBind(); //cmbState.SelectedIndex = 0; ClientHelper.BindEnterpriseType(cmbEnterpriseType); ClientHelper.BindTrade(cmbTrade); cmbEndDateBegin.Format = "yyyy-MM-dd"; cmbEndDate.Format = "yyyy-MM-dd"; cmbEndDateBegin.Value = DateTime.Now; cmbEndDate.Value = DateTime.Now; cmdBeginDate.MaskInput = "yyyy-mm-dd hh:mm"; cmbEndDate2.MaskInput = "yyyy-mm-dd hh:mm"; cmdBeginDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00"; cmbEndDate2.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59"; //cmbEndDate.MaskInput = "yyyy-mm-dd"; this.ultraGrid1.Dock = DockStyle.Fill; this.ultraGrid1.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.SortMulti; this.ultraGroupBox2.BorderStyle = Infragistics.Win.Misc.GroupBoxBorderStyle.None; this.ultraGroupBox2.BringToFront(); ClientHelper.BindMemberRight(cmbMemberRight); PopulateValueList(); //if (ClientHelper.idept.cnnDeptID != 0) //{ // if(!Login.constApp.alOperFunc.Contains("会员档案报表查询")) // { // this.btnQuery.Enabled = false; // } // if(!Login.constApp.alOperFunc.Contains("会员档案报表打印")) // { // this.btnPrint.Enabled = false; // this.btnExcel.Enabled = false; // } // if(!Login.constApp.alOperFunc.Contains("会员档案报表修改")) // { // //this.btnPrint.Enabled = false; // this.btnModify.Enabled = false; // } //} }