コード例 #1
0
        protected override void OnActivated(object option)
        {
            base.OnActivated(option);

            form_.SetMasterTables(Context.KaikeiDatabase);
            form_.SetSettingValues(Context.Setting, Context.KaikeiDatabase);
            gridController.SetTable(Context.KaikeiDatabase.KaikeiDenpyouMeisai);
            kamokuPopupControlelr.Context             = Context;
            hojoKamokuPopupController.Context         = Context;
            tekiyouPopupController.Context            = Context;
            subfunctionPopupController.Context        = Context;
            denpyouBangouSeiriPopupController.Context = Context;
            ikkatsuSyoriPopupController.Context       = Context;

            form_.IdLableVisible         = false;
            form_.UpdateDateLableVisible = false;
            form_.CreateDateLableVisible = false;
            foreach (var rowControl in form_.Grid.AllRowControls())
            {
                rowControl.IdIsVisible         = false;
                rowControl.UpdateDateIsVisible = false;
                rowControl.CreateDateIsVisible = false;
            }

            queryType = QueryType.None;
            if (option != null)
            {
                ChangeQuery((QueryType)option, null);
            }
            else
            {
                ChangeQuery(QueryType.CurrentYear, null);
            }
        }
コード例 #2
0
 override protected void OnActivated(object option)
 {
     table = new models.db.BufferedTable(Context.KaikeiDatabase.MTKoteiShisan);
     gridController.SetTable(table);
     ShowAllRows();
     form.SetDatabase(Context.KaikeiDatabase);
     popupController.Context = Context;
 }
コード例 #3
0
        // events

        override protected void OnActivated(object option)
        {
            tekiyouTable = new models.db.BufferedTable(Context.KaikeiDatabase.MTTekiyou);
            tekiyouTable.SqlCondition = "order by tekiyou_code";
            tekiyouTable.SyncRowList();
            gridController.SetTable(tekiyouTable);
            gridController.SetQuery("");
        }
コード例 #4
0
 override protected void OnActivated(object option)
 {
     form.SetDB(Context.KaikeiDatabase);
     tyuuki8GridController.SetTable(Context.KaikeiDatabase.Tyuuki8);
     tyuuki10GridController.SetTable(Context.KaikeiDatabase.Tyuuki10);
     tyuuki11GridController.SetTable(Context.KaikeiDatabase.Tyuuki11);
     SetNullData();
 }
コード例 #5
0
        // events

        override protected void OnActivated(object option)
        {
            kaikeiTanniTable = new models.db.BufferedTable(Context.KaikeiDatabase.MTKaikeiTanni);
            kaikeiTanniTable.SqlCondition = "order by id";
            kaikeiTanniTable.SyncRowList();
            gridController.SetTable(kaikeiTanniTable);
            gridController.SetQuery("");
        }
コード例 #6
0
        // events

        override protected void OnActivated(object option)
        {
            torihikiKubunTable = new models.db.BufferedTable(Context.KaikeiDatabase.MTTorihikiKubun);
            torihikiKubunTable.SqlCondition = "order by id";
            torihikiKubunTable.SyncRowList();
            gridController.SetTable(torihikiKubunTable);
            gridController.SetQuery("");
        }
コード例 #7
0
        override protected void OnActivated(object option)
        {
            kamokuPopupControlelr.Context     = Context;
            hojoKamokuPopupController.Context = Context;
            tekiyouPopupController.Context    = Context;

            gridController.SetTable(Context.KaikeiDatabase.MTIkkatsuSyori);
            gridController.SetQuery("order by id");
        }
コード例 #8
0
        // events

        override protected void OnActivated(object option)
        {
            bufferedKanjouKamokuTable           = new models.db.vtables.BufferedMTKanjouKamoku(Context.KaikeiDatabase);
            bufferedKanjouKamokuTable.Recursive = false;
            bufferedKanjouKamokuTable.RootId    = -1;
            bufferedKanjouKamokuTable.SyncRowList();

            gridController.SetTable(bufferedKanjouKamokuTable);
            gridController.SetQuery("");
        }
コード例 #9
0
        // events

        override protected void OnActivated(object option)
        {
            bufferedKaikeiKubunTable = new models.db.BufferedTable(Context.KaikeiDatabase.MTKaikeiKubun);
            bufferedKaikeiKubunTable.SqlCondition = "where parent_id <> -1 order by kubun_code";
            bufferedKaikeiKubunTable.SyncRowList();

            gridController.SetTable(bufferedKaikeiKubunTable);
            gridController.SetQuery("");

            SetHoujinShisetsuRowData();
        }
コード例 #10
0
        override protected void OnActivated(object option)
        {
            form.SetDatabase(Context.KaikeiDatabase);
            form.Year = Context.Setting.GetDateTime("nenndo_kisanbi").Value.Year;

            daikubunTable   = new models.db.vtables.BufferedZenkiKurikoshiKamokuKubun(Context.KaikeiDatabase);
            chukubunTable   = new models.db.vtables.BufferedZenkiKurikoshiKamokuKubun(Context.KaikeiDatabase);
            syoukubunTable  = new models.db.vtables.BufferedZenkiKurikoshiKamokuKubun(Context.KaikeiDatabase);
            hojokamokuTable = new models.db.vtables.BufferedZenkiKurikoshiKamokuKubun(Context.KaikeiDatabase);

            daikubunGridController.SetTable(daikubunTable);
            chukubunGridController.SetTable(chukubunTable);
            syoukubunGridController.SetTable(syoukubunTable);
            hojoGridController.SetTable(hojokamokuTable);

            UpdateViews();
        }
コード例 #11
0
        override protected void OnActivated(object option)
        {
            genkaGridController.SetTable(Context.KaikeiDatabase.TaisyakuTaisyouhyouKyakutyuu);
            kaikeiHoushinGridController.SetTable(Context.KaikeiDatabase.TaisyakuTaisyouhyouTyuuki1);
            zaisanGridController.SetTable(Context.KaikeiDatabase.TaisyakuTaisyouhyouTyuuki3);
            torikuzushiGridController.SetTable(Context.KaikeiDatabase.TaisyakuTaisyouhyouTyuuki4);
            tanpoGridController.SetTable(Context.KaikeiDatabase.TaisyakuTaisyouhyouTyuuki5);

            {
                DateTime?kisanbi = Context.Setting.GetDateTime("nenndo_kisanbi");
                if (kisanbi != null)
                {
                    SetNenndo(kisanbi.Value.Year);
                }

                form.InitInputDateStr(Context.Setting.GetStr("before_gengou", ""), "");
            }
        }
コード例 #12
0
        // events

        override protected void OnActivated(object option)
        {
            daikubunTable = new models.db.BufferedTable(Context.KaikeiDatabase.MTKamokuKubun);
            daikubunTable.SyncRowListFunc += delegate(List <models.db.Row> rowList) {
                foreach (var kubunRow in Context.KaikeiDatabase.MTKamokuKubun.Select("where hierarchy=" + ((int)models.constants.MTKamokuKubunHierarchy.Kubun) + " order by display_order"))
                {
                    foreach (var row in Context.KaikeiDatabase.MTKamokuKubun.Select("where parent_id=" + kubunRow.GetLong("id", -1) + " order by display_order"))
                    {
                        models.db.Row newRow = daikubunTable.NewRow();
                        row.CopyColumns(newRow);
                        rowList.Add(newRow);
                    }
                }
            };
            daikubunTable.SyncRowList();
            gridController.SetTable(daikubunTable);
            gridController.SetQuery("");
        }
コード例 #13
0
 override protected void OnActivated(object option)
 {
     InitTargetDateComboBox();
     gridController.SetTable(Context.KaikeiDatabase.KaikeiDenpyouMeisai);
     ChangeQuery(null);
 }