Esempio n. 1
0
 /// <summary>
 /// SaveNew getID
 /// </summary>
 /// <returns>id</returns>
 protected int SaveNew_getID()
 {
     if (_stage != null)
     {
         return(_stage.GetCM_CStage_ID());
     }
     return(0);
 } // saveNew_getID
Esempio n. 2
0
        /// <summary>
        ///Deploy Stage into Container
        /// </summary>
        /// <param name="project">webproject</param>
        /// <param name="stage">Deploy Stage into Container</param>
        /// <param name="path">url to it</param>
        /// <returns>Container</returns>
        public static MContainer Deploy(MWebProject project, MCStage stage,
                                        String path)
        {
            MContainer cc = GetDirect(stage.GetCtx(), stage.GetCM_CStage_ID(),
                                      stage.Get_TrxName());

            if (cc == null)     // new
            {
                cc = new MContainer(stage.GetCtx(), 0, stage.Get_TrxName());
            }
            cc.SetStage(project, stage, path);
            cc.Save();
            if (!stage.IsSummary())
            {
                cc.UpdateElements(project, stage, stage.Get_TrxName());
                cc.UpdateTTables(project, stage, stage.Get_TrxName());
            }
            return(cc);
        }       // copy