Ejemplo n.º 1
0
        public ActionResult AddSIT(SITModel model)
        {
            SIT     s         = new SIT();
            SITStep Step      = new SITStep();
            int     ProjectID = Convert.ToInt32(Session["ProjectID"]);

            s.Project_ID  = ProjectID;
            s.Name        = model.Name;
            s.Detail      = model.Detail;
            s.Tester_ID   = model.Tester_ID;
            s.Dev_ID      = model.Dev_ID;
            s.QA_ID       = model.QA_ID;
            s.Send_Date_T = model.Send_Date_T;
            s.Send_Date_Q = model.Send_Date_Q;
            s.Handle      = model.Tester_ID;
            if (model.AttachFile != null)
            {
                var      Upload = Upload_FileSIT(model.AttachFile);
                string[] txt    = Upload.Split(",".ToCharArray());
                s.AttachFile = txt[0];
                s.AttachShow = txt[1];
            }
            s.Status     = 0;
            s.CreateDate = DateTime.Now;
            s.CreateBy   = Convert.ToInt32(Session["userID"]);
            db.SITs.Add(s);
            db.SaveChanges();
            var c = model.TaskList.Count();

            for (int item = 0; item < c; item++)
            {
                Step.Task_ID = model.TaskList[item];
                Step.Step    = item;
                Step.SIT_ID  = s.SIT_ID;
                db.SITSteps.Add(Step);
                db.SaveChanges();
            }
            return(RedirectToAction("ShowSIT", "SIT"));
        }
Ejemplo n.º 2
0
 public static extern int DwmSetIconicLivePreviewBitmap(IntPtr hwnd, IntPtr hbmp, ref POINT pptClient, SIT dwSITFlags);
Ejemplo n.º 3
0
 public static extern int DwmSetIconicThumbnail(IntPtr hwnd, IntPtr hbmp, SIT dwSITFlags);
Ejemplo n.º 4
0
		public static extern int DwmSetIconicLivePreviewBitmap(IntPtr hwnd, IntPtr hbmp, ref POINT pptClient, SIT dwSITFlags);
Ejemplo n.º 5
0
		public static extern int DwmSetIconicThumbnail(IntPtr hwnd, IntPtr hbmp, SIT dwSITFlags);