コード例 #1
0
ファイル: ZABI10.cs プロジェクト: oopsha/eldorado-rms-backup
        private void radioGroup1_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                SchedulerGroupType Type = new SchedulerGroupType();
                switch (this.radioGroup1.EditValue.ToString())
                {
                case "None":
                    Type = SchedulerGroupType.None;
                    break;

                case "Date":
                    Type = SchedulerGroupType.Date;
                    break;

                case "Resource":
                    Type = SchedulerGroupType.Resource;
                    break;
                }
                schedulerControl.GroupType = Type;
            }
            catch (Exception ex)
            {
                Basic.ShowMessage(3, ex.Message);
            }
        }
コード例 #2
0
        public bool IsValid(object owner, Condition condition)
        {
            if (!(owner is IWorkspace1))
            {
                return(false);
            }
            IWorkspace1           workspace  = (IWorkspace1)owner;
            AppointmentController controller = workspace.FindController <AppointmentController>("");

            if (controller != null)
            {
                SchedulerGroupType groupType;
                bool parseSuccess = SchedulerGroupType.TryParse(condition.Name, true, out groupType);
                if (parseSuccess)
                {
                    return(controller.IsTheSameGroupType(groupType));
                }
            }
            return(false);
        }
コード例 #3
0
 public ActionResult Grouping(SchedulerGroupType GroupType)
 {
     Session["GroupType"] = GroupType;
     return(DemoView("Grouping", SchedulerDataHelper.DataObject));
 }