public DayReportDetailCtrl(DayReport order = null, CJBasic.Action <List <Guide>, BaseUserControl> dayReportDetailCtrl_GuideInited = null) { InitializeComponent(); this.GuideInited += dayReportDetailCtrl_GuideInited; this.Initialize(order); if (order == null) { MenuPermission = RolePermissionMenuEnum.当日结存; } else { MenuPermission = RolePermissionMenuEnum.日结存查询; } }
public WholesaleEmOrderManageCtrl(int type, CJBasic.Action <PfCustomerOrder, BaseUserControl, Panel> DetailClick) { InitializeComponent(); // this.Controls.Add(imageCtrl); dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1, dataGridViewPagingSumCtrl_CurrentPageIndexChanged, BaseButton_Search_Click); dataGridViewPagingSumCtrl.Initialize(); this.DetailClick += DetailClick; SetOrderState(); DateTimeUtil.DateTimePicker_SetDateTimePicker(dateTimePicker_Start, dateTimePicker_End); if (type == 0) { tabControl1.SelectTab(1); tabControl1_SelectedIndexChanged(null, null); } skinComboBox_PfCustomer.Initialize(false, true); }
public EmOrderManageCtrl(int type, CJBasic.Action <EmRetailOrder, BaseUserControl, Panel> DetailClick, CJBasic.Action <EmRetailOrder, Panel> LogisticsClick) { InitializeComponent(); MenuPermission = RolePermissionMenuEnum.订单管理; // this.Controls.Add(imageCtrl); dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1, dataGridViewPagingSumCtrl_CurrentPageIndexChanged, BaseButton_Search_Click); dataGridViewPagingSumCtrl.Initialize(); this.DetailClick += DetailClick; this.LogisticsClick += LogisticsClick; dataGridViewPagingSumCtrl.SelectionChanged = dataGridView1_SelectionChanged; SetOrderState(); DateTimeUtil.DateTimePicker_SetDateTimePicker(dateTimePicker_Start, dateTimePicker_End); SetRefundStateEnum(); if (type == 0) { tabControl1.SelectTab(2); tabControl1_SelectedIndexChanged(null, null); } }