Esempio n. 1
0
        private void gdFindWhere_ComboDropDown(object Sender, FlexCell.Grid.ComboDropDownEventArgs e)
        {
            FlexCell.ComboBox cb = gdFindWhere.ComboBox(0);

            switch (e.Row)
            {
            case 1:                                       // 日期类型
                cb.DropDownWidth = 0;
                cb.DropDownFont  = new Font("宋体", 10.5f); // System.Drawing.Font.;

                cb.Items.Add("单据日期");
                cb.Items.Add("审核日期");
                break;
            }
        }
Esempio n. 2
0
        private void gdFindWhere_ComboDropDown(object Sender, FlexCell.Grid.ComboDropDownEventArgs e)
        {
            FlexCell.ComboBox cb = gdFindWhere.ComboBox(0);
            cb.DropDownFont = gdFindWhere.DefaultFont;

            switch (e.Row)
            {
            case 1:     // 日期类型
                cb.DropDownWidth = 0;
                cb.Items.Add("单据日期");
                cb.Items.Add("审核日期");
                break;

            case 4:     // 日期类型
                cb.DropDownWidth = 0;
                cb.Items.Add("已审核");
                cb.Items.Add("未审核");
                break;
            }
        }
Esempio n. 3
0
 /// <summary>
 /// 初始化桌台明细表格
 /// </summary>
 /// <param name="tableType"></param>
 public void InitDataGridViewInfo(string tableType)
 {
     try
     {
         var infoList = DiningTableInfoSet.DiningTableInfoList.FindAll(x => x.Type == tableType);
         int rowCount = infoList.Count();
         gridInfo.AutoRedraw = false;  // 禁止刷新表格
         gridInfo.Refresh();
         gridInfo.Cols               = 5;
         gridInfo.Rows               = rowCount + 1;
         gridInfo.Cell(0, 1).Text    = "编号";
         gridInfo.Cell(0, 2).Text    = "位置";
         gridInfo.Cell(0, 3).Text    = "状态";
         gridInfo.Cell(0, 4).Text    = "备注";
         gridInfo.Column(1).CellType = FlexCell.CellTypeEnum.TextBox;
         gridInfo.Column(2).CellType = FlexCell.CellTypeEnum.TextBox;
         gridInfo.Column(3).CellType = FlexCell.CellTypeEnum.ComboBox;
         gridInfo.Column(4).CellType = FlexCell.CellTypeEnum.TextBox;
         for (int i = 0; i < infoList.Count; i++)
         {
             gridInfo.Cell(i + 1, 1).Text = infoList[i].No;
             gridInfo.Cell(i + 1, 2).Text = infoList[i].Place;
             gridInfo.Cell(i + 1, 3).Text = infoList[i].Status;
             gridInfo.Cell(i + 1, 4).Text = infoList[i].Comment;
         }
         //设置combobox
         FlexCell.ComboBox cb = gridInfo.ComboBox(3);
         cb.DropDownFont = new Font("Courier New", 9);
         cb.Items.Clear();
         cb.Items.Add("Empty");
         cb.Items.Add("Occupied");
         cb.Items.Add("Reserved");
         gridInfo.AutoRedraw = true;
         gridInfo.Refresh();
     }
     catch (Exception ex)
     {
         SimpleLoger.Instance.Error(ex);
     }
 }