예제 #1
0
        private void SaveData()
        {
            var task = new SysTask();

            if (TaskID > 0)
            {
                task.LoadByIdentity(TaskID);
                SetData(task);
                task.Update();
            }
        }
예제 #2
0
        private void SaveData()
        {
            var task = new SysTask();

            if (TaskID > 0)
            {
                task.LoadByIdentity(TaskID);
                SetData(task);
                task.Update();
            }
            else
            {
                SetData(task);
                task.Status = (int)TaskStatus.ToCorrect;
                task.Add();
            }
        }