예제 #1
0
        public ActionResult savetask()
        {
            string groupid = Session["group"].ToString();

            Domain.Socioboard.Domain.User objUser = (Domain.Socioboard.Domain.User)Session["User"];

            string descritption = Request.QueryString["description"];

            string AssignDate = Request.QueryString["now"];

            string comment = Request.QueryString["comment"];

            Guid idtoassign = Guid.Empty;

            try
            {
                if (!string.IsNullOrEmpty(Request.QueryString["memberid"]))
                {
                    idtoassign = Guid.Parse(Request.QueryString["memberid"]);
                }
            }
            catch (Exception ex)
            {
            }

            Domain.Socioboard.Domain.Tasks objTasks = new Domain.Socioboard.Domain.Tasks();

            Api.Tasks.Tasks objApiTasks = new Api.Tasks.Tasks();
            objApiTasks.AddNewTaskWithGroup(descritption, objUser.Id.ToString(), objTasks, idtoassign.ToString(), comment, AssignDate, groupid);

            return(Content(""));
        }
예제 #2
0
 public void CreateNewTask(string description, string userid, Domain.Socioboard.Domain.Tasks task, string assigntoId, string comment)
 {
     this.Invoke("CreateNewTask", new object[] {
         description,
         userid,
         task,
         assigntoId,
         comment
     });
 }
예제 #3
0
 public void addTask(string description, string userid, Domain.Socioboard.Domain.Tasks task, string assigntoId, string comment, string AssignDate)
 {
     this.Invoke("addTask", new object[] {
         description,
         userid,
         task,
         assigntoId,
         comment,
         AssignDate
     });
 }
예제 #4
0
 public void AddNewTaskWithGroup(string description, string userid, Domain.Socioboard.Domain.Tasks task, string assigntoId, string comment, string AssignDate, string groupid)
 {
     this.Invoke("AddNewTaskWithGroup", new object[] {
         description,
         userid,
         task,
         assigntoId,
         comment,
         AssignDate,
         groupid
     });
 }
예제 #5
0
 /// <remarks/>
 public void CreateNewTaskAsync(string description, string userid, Domain.Socioboard.Domain.Tasks task, string assigntoId, string comment, object userState)
 {
     if ((this.CreateNewTaskOperationCompleted == null))
     {
         this.CreateNewTaskOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateNewTaskOperationCompleted);
     }
     this.InvokeAsync("CreateNewTask", new object[] {
         description,
         userid,
         task,
         assigntoId,
         comment
     }, this.CreateNewTaskOperationCompleted, userState);
 }
예제 #6
0
 /// <remarks/>
 public void AddNewTaskWithGroupAsync(string description, string userid, Domain.Socioboard.Domain.Tasks task, string assigntoId, string comment, string AssignDate, string groupid, object userState)
 {
     if ((this.AddNewTaskWithGroupOperationCompleted == null))
     {
         this.AddNewTaskWithGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddNewTaskWithGroupOperationCompleted);
     }
     this.InvokeAsync("AddNewTaskWithGroup", new object[] {
         description,
         userid,
         task,
         assigntoId,
         comment,
         AssignDate,
         groupid
     }, this.AddNewTaskWithGroupOperationCompleted, userState);
 }
예제 #7
0
 /// <remarks/>
 public void AddNewTaskWithGroupAsync(string description, string userid, Domain.Socioboard.Domain.Tasks task, string assigntoId, string comment, string AssignDate, string groupid)
 {
     this.AddNewTaskWithGroupAsync(description, userid, task, assigntoId, comment, AssignDate, groupid, null);
 }
예제 #8
0
 /// <remarks/>
 public void addTaskAsync(string description, string userid, Domain.Socioboard.Domain.Tasks task, string assigntoId, string comment, string AssignDate)
 {
     this.addTaskAsync(description, userid, task, assigntoId, comment, AssignDate, null);
 }
예제 #9
0
 /// <remarks/>
 public void CreateNewTaskAsync(string description, string userid, Domain.Socioboard.Domain.Tasks task, string assigntoId, string comment)
 {
     this.CreateNewTaskAsync(description, userid, task, assigntoId, comment, null);
 }