Beispiel #1
0
        public NewTask(object[] args)
        {
            this.Font          = new System.Drawing.Font(Font.Name, 8.25f * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
            this.AutoScaleMode = AutoScaleMode.None;

            InitializeComponent();

            listPriority = _priorityBLL.GetList();
            listStatus   = _statusBLL.GetList();

            cbbPriority.Items.AddRange(listPriority.Select(p => new ComboboxItem()
            {
                Text = p.Name, Value = p.PriorityID
            }).ToArray());
            cbbStatus.Items.AddRange(listStatus.Select(p => new ComboboxItem()
            {
                Text = p.Name, Value = p.StatusID
            }).ToArray());


            task = new TaskVO();
            if (args != null && args.Length == 1)
            {
                task = _taskBLL.GetById((int)args[0]);
                UpdateTask();
            }
            else
            {
                btnReset.Visible = false;
            }
        }
Beispiel #2
0
        public async Task <ActionResult> GetListJson(StatusListParam param)
        {
            TData <List <StatusEntity> > obj = await statusBLL.GetList(param);

            return(Json(obj));
        }