コード例 #1
0
 public Utilization(Provider provider, IDictionary <string, object> param)
 {
     Source             = Source.Utilization;
     Provider           = provider;
     Input              = param;
     DbData             = new DataBuilder(Source, Provider, Input);
     Table              = DbData.Table;
     Columns            = DbData.Columns;
     Data               = DbData.Data;
     ID                 = int.Parse(Data["ID"].ToString());
     RPIO               = Data["RPIO "].ToString();
     BFY                = Data["BFY"].ToString();
     Fund               = new Fund(Data["FundCode"].ToString(), BFY);
     AH                 = Data["AH"].ToString();
     Org                = new Org(Data["Org"].ToString());
     RC                 = new RC(Data["RC"].ToString());
     ProgramProjectCode = Data["ProgramProjectCode"].ToString();
     BOC                = new BOC(Data["BOC"].ToString());
     FOC                = Data["FOC"].ToString();
     FocName            = Data["FocName"].ToString();
     Authority          = decimal.Parse(Data["Authority"].ToString());
     Budgeted           = decimal.Parse(Data["Budgeted"].ToString());
     Posted             = decimal.Parse(Data["Posted"].ToString());
     CarryIn            = decimal.Parse(Data["CarryIn"].ToString());
     CarryOut           = decimal.Parse(Data["CarryOut"].ToString());
     Commitments        = decimal.Parse(Data["Commitments"].ToString());
     OpenCommitments    = decimal.Parse(Data["OpenCommitments"].ToString());
     Obligations        = decimal.Parse(Data["Obligations"].ToString());
     ULO                = decimal.Parse(Data["ULO"].ToString());
 }
コード例 #2
0
 public PRC(Dictionary <string, object> data) : this()
 {
     Parameter          = data;
     DbData             = new DataBuilder(Source.PRC, Parameter);
     Table              = DbData.Table;
     Columns            = DbData.Columns;
     Data               = DbData.Data;
     ID                 = int.Parse(Data["ID"].ToString());
     BudgetLevel        = Data["BudgetLevel"].ToString();
     RPIO               = Data["RPIO"].ToString();
     AH                 = Data["AH"].ToString();
     BFY                = Data["BFY"].ToString();
     Fund               = new Fund(Data["FundCode"].ToString(), Data["BFY"].ToString());
     Org                = new Org(Data["Org"].ToString());
     RC                 = new RC(Data["RC"].ToString());
     Account            = new Account(Provider.SQLite, BFY, Fund.Code, Data["Code"].ToString());
     Code               = Account.Code;
     BOC                = new BOC(Data["BOC"].ToString());
     Amount             = decimal.Parse(Data["Amount"].ToString());
     ProgramProjectCode = Account.ProgramProjectCode;
     ProgramProjectName = Account.ProgramProjectName;
     ProgramArea        = Account.ProgramArea;
     NPM                = Account.NPM;
     NpmCode            = Account.NpmCode;
     Goal               = Account.Goal;
     GoalName           = Account.GoalName;
     Objective          = Account.Objective;
     ObjectiveName      = Account.ObjectiveName;
 }
コード例 #3
0
 public PRC(DataRow row) : this()
 {
     Data               = row;
     ID                 = int.Parse(Data["ID"].ToString());
     BudgetLevel        = Data["BudgetLevel"].ToString();
     RPIO               = Data["RPIO"].ToString();
     AH                 = Data["AH"].ToString();
     BFY                = Data["BFY"].ToString();
     Fund               = new Fund(Data["FundCode"].ToString(), Data["BFY"].ToString());
     Org                = new Org(Data["Org"].ToString());
     RC                 = new RC(Data["RC"].ToString());
     Account            = new Account(Provider.SQLite, BFY, Fund.Code, Data["Code"].ToString());
     Code               = Account.Code;
     BOC                = new BOC(Data["BOC"].ToString());
     Amount             = decimal.Parse(Data["Amount"].ToString());
     ProgramProjectCode = Account.ProgramProjectCode;
     ProgramProjectName = Account.ProgramProjectName;
     ProgramArea        = Account.ProgramArea;
     NPM                = Account.NPM;
     NpmCode            = Account.NpmCode;
     Goal               = Account.Goal;
     GoalName           = Account.GoalName;
     Objective          = Account.Objective;
     ObjectiveName      = Account.ObjectiveName;
 }
コード例 #4
0
 public Transfer(Provider provider, Dictionary <string, object> p) : this()
 {
     Provider    = provider;
     Input       = p;
     DbData      = new DataBuilder(Source, Provider, Input);
     Table       = DbData.Table;
     Columns     = DbData.Columns;
     Data        = DbData.Data;
     TransId     = int.Parse(Data["ID"].ToString());
     BudgetLevel = Data["BudgetLevel"].ToString();
     DocType     = Data["DocType"].ToString();
     RPIO        = Data["RPIO"].ToString();
     Org         = new Org(Data["Org"].ToString());
     RC          = new RC(Data["RC"].ToString());
     BFY         = Data["BFY"].ToString();
     Fund        = new Fund(Data["FundCode"].ToString(), BFY);
     TCN         = Data["TCN"].ToString();
     Qtr         = Data["Qtr"].ToString();
     Date        = Data["Date"].ToString();
     Code        = Data["Code"].ToString();
     Account     = new Account(Provider.SQLite, BFY, Fund.Code, Code);
     FundCode    = Account.FundCode;
     NpmCode     = Account.NPM;
     FromTo      = Data["FromTo"].ToString();
     BOC         = new BOC(Data["BOC"].ToString());
     Amount      = decimal.Parse(Data["Amount"].ToString());
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref = "BudgetObjectClass"/> class.
 /// </summary>
 /// <param name = "boc" >
 /// The code.
 /// </param>
 public BudgetObjectClass(BOC boc)
     : this()
 {
     Record   = new DataBuilder(Source, SetArgs(boc))?.GetRecord();
     ID       = new Key(Record, PrimaryKey.BudgetObjectClassId);
     Name     = new Element(Record, Field.BudgetObjectClassName);
     Code     = new Element(Record, Field.BudgetObjectClassCode);
     Category = boc;
     Data     = Record?.ToDictionary();
 }
コード例 #6
0
 public ProgramObligations(DataRow dr)
 {
     ID   = int.Parse(dr["ID"].ToString());
     RPIO = dr["RPIO "].ToString();
     BFY  = dr["BFY"].ToString();
     Fund = new Fund(dr["FundCode"].ToString(), BFY);
     Org  = new Org(dr["Org"].ToString());
     RC   = new RC(dr["RC"].ToString());
     ProgramProjectCode = dr["ProgramProjectCode"].ToString();
     BOC         = new BOC(dr["BOC"].ToString());
     FOC         = dr["FOC"].ToString();
     FocName     = dr["FocName"].ToString();
     Obligations = decimal.Parse(dr["Obligations"].ToString());
 }
コード例 #7
0
 public ProgramObligations(Provider provider, Dictionary <string, object> param)
 {
     Source             = Source.ProgramObligations;
     Provider           = provider;
     DbData             = new DataBuilder(Source, Provider, param);
     Table              = DbData.Table;
     Columns            = DbData.Columns;
     Data               = DbData.Data;
     ID                 = int.Parse(Data["ID"].ToString());
     RPIO               = Data["RPIO "].ToString();
     BFY                = Data["BFY"].ToString();
     Fund               = new Fund(Data["FundCode"].ToString(), BFY);
     Org                = new Org(Data["Org"].ToString());
     RC                 = new RC(Data["RC"].ToString());
     ProgramProjectCode = Data["ProgramProjectCode"].ToString();
     BOC                = new BOC(Data["BOC"].ToString());
     FOC                = Data["FOC"].ToString();
     FocName            = Data["FocName"].ToString();
     Obligations        = decimal.Parse(Data["Obligations"].ToString());
 }
コード例 #8
0
 public Transfer(DataRow dr) : this()
 {
     Data        = dr;
     TransId     = int.Parse(Data["ID"].ToString());
     BudgetLevel = Data["BudgetLevel"].ToString();
     DocType     = Data["DocType"].ToString();
     RPIO        = Data["RPIO"].ToString();
     Org         = new Org(Data["Org"].ToString());
     RC          = new RC(Data["RC"].ToString());
     BFY         = Data["BFY"].ToString();
     Fund        = new Fund(Data["FundCode"].ToString(), BFY);
     TCN         = Data["TCN"].ToString();
     Qtr         = Data["Qtr"].ToString();
     Date        = Data["Date"].ToString();
     Code        = Data["Code"].ToString();
     Account     = new Account(Provider.SQLite, BFY, Fund.Code, Code);
     FundCode    = Account.FundCode;
     NpmCode     = Account.NPM;
     FromTo      = Data["FromTo"].ToString();
     BOC         = new BOC(Data["BOC"].ToString());
     Amount      = decimal.Parse(Data["Amount"].ToString());
 }
コード例 #9
0
 public Utilization(DataRow dr) : this()
 {
     Data = dr;
     ID   = int.Parse(Data["ID"].ToString());
     RPIO = Data["RPIO "].ToString();
     BFY  = Data["BFY"].ToString();
     Fund = new Fund(Data["FundCode"].ToString(), BFY);
     AH   = Data["AH"].ToString();
     Org  = new Org(Data["Org"].ToString());
     RC   = new RC(Data["RC"].ToString());
     ProgramProjectCode = Data["ProgramProjectCode"].ToString();
     BOC             = new BOC(Data["BOC"].ToString());
     FOC             = Data["FOC"].ToString();
     FocName         = Data["FocName"].ToString();
     Authority       = decimal.Parse(Data["Authority"].ToString());
     Budgeted        = decimal.Parse(Data["Budgeted"].ToString());
     Posted          = decimal.Parse(Data["Posted"].ToString());
     CarryIn         = decimal.Parse(Data["CarryIn"].ToString());
     CarryOut        = decimal.Parse(Data["CarryOut"].ToString());
     Commitments     = decimal.Parse(Data["Commitments"].ToString());
     OpenCommitments = decimal.Parse(Data["OpenCommitments"].ToString());
     Obligations     = decimal.Parse(Data["Obligations"].ToString());
     ULO             = decimal.Parse(Data["ULO"].ToString());
 }