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); }
private void NoSignInReport_Load(object sender, System.EventArgs e) { this.ultraGrid1.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.SortMulti; ClientHelper.BindTrade(cmbTrade); ClientHelper.BindMemberRight(cmbMemberRight); 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"; //Helper.BindJob_Query(cmbShow); Helper.BindJob_Query_Limit(cmbShow); Helper.BindMember(cmbMember); Helper.BindSynch(cmbSynch); this.ultraGrid1.Dock = DockStyle.Fill; this.ultraGroupBox2.BorderStyle = Infragistics.Win.Misc.GroupBoxBorderStyle.None; this.ultraGroupBox2.BringToFront(); //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; // } //} }
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; // } //} ClientHelper.BindSales(cmbSales, this.oper.cnnOperID.ToString()); ClientHelper.BindSales(cmbCustomerService, this.oper.cnnOperID.ToString()); }
private void ProductReport_Load(object sender, System.EventArgs e) { this.ultraGrid1.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.SortMulti; cmbBeginDate.MaskInput = "yyyy-mm-dd hh:mm"; cmbEndDate.MaskInput = "yyyy-mm-dd hh:mm"; cmbBeginDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00"; cmbEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59"; //DataTable dtOper = Helper.Query("select * from tbOper where cnvcOperName <> 'admin'"); //cmbOperName.DataSource = dtOper; //cmbOperName.DisplayMember = "cnvcOperName"; //cmbOperName.ValueMember = "cnnOperID"; ClientHelper.BindOper(cmbOperName, this.oper, this.dept); //绑定会员状态 // DataTable dtState = new DataTable(); // //dtState.Columns.Add("cnvcState"); // dtState.Columns.Add("会员状态"); // // DataRow drState0 = dtState.NewRow(); // //drState0["cnvcState"] = "0"; // drState0["会员状态"] = ConstApp.Card_State_InUse; // // dtState.Rows.Add(drState0); // // DataRow drState1 = dtState.NewRow(); // //drState1["cnvcState"] = "1"; // drState1["会员状态"] = ConstApp.Card_State_InLose; // // dtState.Rows.Add(drState1); // // DataRow drState2 = dtState.NewRow(); // //drState2["cnvcState"] = "2"; // drState2["会员状态"] = ConstApp.Card_State_InAdd; // // dtState.Rows.Add(drState2); // // DataRow drState3 = dtState.NewRow(); // //drState2["cnvcState"] = "2"; // drState3["会员状态"] = ConstApp.Card_State_InCallBack; // // dtState.Rows.Add(drState3); //cmbState.DataSource = dtState; //cmbState.DisplayMember = "会员状态"; //cmbState.ValueMember = "cnvcState"; //cmbState.DataBind(); //cmbState.SelectedIndex = 0; //Helper.BindJob(cmbShow); Helper.BindMember(cmbMember); Helper.BindCost(this.ultraComboEditor1); ClientHelper.BindMemberRight(cmbMemberRight); this.ultraGrid1.Dock = DockStyle.Fill; this.ultraGroupBox1.BorderStyle = Infragistics.Win.Misc.GroupBoxBorderStyle.None; this.ultraGroupBox1.BringToFront(); //Helper.BindProduct(cmbProduct); //if (ClientHelper.idept.cnnDeptID != 0) //{ // if(!Login.constApp.alOperFunc.Contains("收入报表查询")) // { // this.btnQuery.Enabled = false; // } // if(!Login.constApp.alOperFunc.Contains("收入报表打印")) // { // this.ultraButton1.Enabled = false; // btnExcel.Enabled = false; // } //} ClientHelper.BindSales(cmbSales, this.oper.cnnOperID.ToString()); ClientHelper.BindDept(cmbDept, this.oper.cnnOperID.ToString()); }