public override void Execute()
            {
                var objSpace = (XPObjectSpace)Application.CreateObjectSpace();
                var paramObj = FinGenJournalParam.GetInstance(objSpace);
                var dialog   = new Xafology.ExpressApp.SystemModule.PopupDialogDetailViewManager(Application);

                dialog.Accepting += dialog_Accepting;
                _ParamObj         = paramObj;
                dialog.ShowView(objSpace, paramObj);
            }
예제 #2
0
        private void ShowGeneratorForm(ShowViewParameters svp)
        {
            var objSpace = (XPObjectSpace)Application.CreateObjectSpace();
            var paramObj = FinGenJournalParam.GetInstance(objSpace);

            _ParamObj = paramObj;

            var detailView = Application.CreateDetailView(objSpace, paramObj);

            svp.CreatedView = detailView;
        }
예제 #3
0
        private void OkAction_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            FinGenJournalParam paramObj = e.CurrentObject as FinGenJournalParam;
            var journalGenerator        = new ParamJournalGenerator(paramObj, (XPObjectSpace)ObjectSpace);

            journalGenerator.Execute();
            ObjectSpace.CommitChanges();
            View.Close();

            new Xafology.ExpressApp.SystemModule.GenericMessageBox(
                "Journals successfully generated. Please refresh the Cash Gen Ledger Report.",
                "Journal Generation SUCCESS");
        }
예제 #4
0
        public AccountSqlJournalHelper(XPObjectSpace objSpace, FinGenJournalParam paramObj)
        {
            this.objSpace = objSpace;
            this.paramObj = paramObj;

            if (paramObj.FromDate <= SqlDateTime.MinValue.Value)
            {
                this.fromDate = SqlDateTime.MinValue.Value;
            }
            else
            {
                this.fromDate = paramObj.FromDate;
            }

            if (paramObj.ToDate <= SqlDateTime.MinValue.Value)
            {
                this.toDate = SqlDateTime.MaxValue.Value;
            }
            else
            {
                this.toDate = paramObj.ToDate;
            }
        }
        public GenLedgerUnpostedCreator(XPObjectSpace objSpace, FinGenJournalParam paramObj)
        {
            this.objSpace = objSpace;
            this.paramObj = paramObj;

            if (paramObj.FromDate <= SqlDateTime.MinValue.Value)
            {
                this.fromDate = SqlDateTime.MinValue.Value;
            }
            else
            {
                this.fromDate = paramObj.FromDate;
            }

            if (paramObj.ToDate <= SqlDateTime.MinValue.Value)
            {
                this.toDate = SqlDateTime.MaxValue.Value;
            }
            else
            {
                this.toDate = paramObj.ToDate;
            }
        }
예제 #6
0
 public CashFlowActivityOrmJournalHelper(XPObjectSpace objSpace, FinGenJournalParam paramObj)
 {
     this.objSpace = objSpace;
     this.paramObj = paramObj;
 }
예제 #7
0
 public BankStmtActivitySqlJournalHelper(XPObjectSpace objSpace, FinGenJournalParam paramObj)
     : base(objSpace, paramObj)
 {
 }
예제 #8
0
 public MockJournalDeleter(FinGenJournalParam paramObj)
 {
 }
 public ParamJournalGenerator(FinGenJournalParam paramObj, XPObjectSpace objSpace)
 {
     this.paramObj = paramObj;
     this.objSpace = objSpace;
 }
 public CashFlowActivitySqlJournalHelper(XPObjectSpace objSpace, FinGenJournalParam paramObj)
     : base(objSpace, paramObj)
 {
 }