private void AddPrepayReport_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); //Helper.BindJob_Query(cmbShow); //Helper.BindJob_Query_Limit(cmbShow); //cmbFeeDirection.Items.Add("缴费","缴费"); //cmbFeeDirection.Items.Add("退费","退费"); this.ultraGrid1.Dock = DockStyle.Fill; this.ultraGroupBox1.BorderStyle = Infragistics.Win.Misc.GroupBoxBorderStyle.None; this.ultraGroupBox1.BringToFront(); //cmbFeeDirection. //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()); }
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()); }