예제 #1
0
 // GET: /Projects/Create
 public ActionResult CreatePartial(long id)
 {
     if (id == 0)
     {
         tblProject childProject = new tblProject();
         childProject.fldProjectID = 0;
         return PartialView("_PartialCreateProject", childProject);
     }
     else
     {
         tblProject parentProject = new tblProject();
         tblProject childProject = new tblProject();
         tblProjectDap newDap = new tblProjectDap();
         parentProject = newDap.GetByfldProjectID(id);
         childProject.fldProjectID = parentProject.fldProjectID;
         childProject.fldProjectTreeID = parentProject.fldProjectTreeID;
         return PartialView("_PartialCreateProject",childProject);
     }
 }
예제 #2
0
        private void frmErga_Single_Load(object sender, EventArgs e)
        {
            updateButtons(fState);
            FillCombos();
            switch (fState)
            {
                case enums.formState.Add:
                    break;
                case enums.formState.AddChild:
                    break;
                case enums.formState.Update:

                case enums.formState.Delete:
                    {
                        tblProjectDap newDap = new tblProjectDap();
                        _tblProject = newDap.GetByfldProjectID(_fldProjectID);
                        loadFormfromObject(_tblProject);
                        FillGrids();
                    }
                    break;

            }
        }
예제 #3
0
 public tblProject GettblProjectByfldProjectID(Int64 fldProjectID)
 {
     using (var dap = new tblProjectDap(this))
     {
         return dap.GetByfldProjectID(fldProjectID);
     }
 }
예제 #4
0
 //
 // GET: /Projects/Edit/5
 public ActionResult Edit(int id)
 {
     tblProject editProject = new tblProject();
     tblProjectDap newDap = new tblProjectDap();
     editProject = newDap.GetByfldProjectID(id);
     return View(editProject);
        // return PartialView("_PartialEditProject", editProject);
 }
예제 #5
0
 //
 // GET: /Projects/Details/5
 public ActionResult Details(int id)
 {
     tblProject editProject = new tblProject();
     tblProjectDap newDap = new tblProjectDap();
     editProject = newDap.GetByfldProjectID(id);
     return View(editProject);
 }