Exemple #1
0
 public S_PLACA_RAD1GDataSet.S_PLACA_RAD1GRow AddS_PLACA_RAD1GRow(decimal bROJRADNIKA, decimal bROJRADNIKAZENA, decimal gODINASTAROSTI, string rADNOVRIJEME, string vRSTARADNOGODNOSA, string sPREMA)
 {
     S_PLACA_RAD1GDataSet.S_PLACA_RAD1GRow row = (S_PLACA_RAD1GDataSet.S_PLACA_RAD1GRow) this.NewRow();
     row.ItemArray = new object[] { bROJRADNIKA, bROJRADNIKAZENA, gODINASTAROSTI, rADNOVRIJEME, vRSTARADNOGODNOSA, sPREMA };
     this.Rows.Add(row);
     return(row);
 }
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_PLACA_RAD1GSelect2 = this.connDefault.GetCommand("S_PLACA_RAD1G", true);
            this.cmS_PLACA_RAD1GSelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_PLACA_RAD1GSelect2.IDbCommand.Parameters.Clear();
            this.cmS_PLACA_RAD1GSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@GODINAISPLATE", this.AV8GODINAI));
            this.cmS_PLACA_RAD1GSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@MJESECISPLATE", this.AV9MJESECI));
            this.cmS_PLACA_RAD1GSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@DATUMNAKOJIRACUNAMSTAROST", this.AV10DATUMN));
            this.cmS_PLACA_RAD1GSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@MJESECODLASKA", this.AV11MJESEC));
            this.cmS_PLACA_RAD1GSelect2.ErrorMask |= ErrorMask.Lock;
            this.S_PLACA_RAD1GSelect2              = this.cmS_PLACA_RAD1GSelect2.FetchData();
            while (this.cmS_PLACA_RAD1GSelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_PLACA_RAD1GSelect2.HasMoreRows = this.S_PLACA_RAD1GSelect2.Read();
            }
            int num = 0;

            while (this.cmS_PLACA_RAD1GSelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_PLACA_RAD1G["BROJRADNIKA"]       = RuntimeHelpers.GetObjectValue(this.S_PLACA_RAD1GSelect2["BROJRADNIKA"]);
                this.rowS_PLACA_RAD1G["BROJRADNIKAZENA"]   = RuntimeHelpers.GetObjectValue(this.S_PLACA_RAD1GSelect2["BROJRADNIKAZENA"]);
                this.rowS_PLACA_RAD1G["GODINASTAROSTI"]    = RuntimeHelpers.GetObjectValue(this.S_PLACA_RAD1GSelect2["GODINASTAROSTI"]);
                this.rowS_PLACA_RAD1G["RADNOVRIJEME"]      = RuntimeHelpers.GetObjectValue(this.S_PLACA_RAD1GSelect2["RADNOVRIJEME"]);
                this.rowS_PLACA_RAD1G["VRSTARADNOGODNOSA"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_RAD1GSelect2["VRSTARADNOGODNOSA"]);
                this.rowS_PLACA_RAD1G["SPREMA"]            = RuntimeHelpers.GetObjectValue(this.S_PLACA_RAD1GSelect2["SPREMA"]);
                this.AddRowS_placa_rad1g();
                num++;
                this.rowS_PLACA_RAD1G = this.S_PLACA_RAD1GSet.S_PLACA_RAD1G.NewS_PLACA_RAD1GRow();
                this.cmS_PLACA_RAD1GSelect2.HasMoreRows = this.S_PLACA_RAD1GSelect2.Read();
            }
            this.S_PLACA_RAD1GSelect2.Close();
            this.Cleanup();
        }
 public virtual int FillPage(S_PLACA_RAD1GDataSet dataSet, string gODINAISPLATE, string mJESECISPLATE, DateTime dATUMNAKOJIRACUNAMSTAROST, string mJESECODLASKA, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_PLACA_RAD1GSet = dataSet;
     this.rowS_PLACA_RAD1G = this.S_PLACA_RAD1GSet.S_PLACA_RAD1G.NewS_PLACA_RAD1GRow();
     this.SetFillParameters(gODINAISPLATE, mJESECISPLATE, dATUMNAKOJIRACUNAMSTAROST, mJESECODLASKA);
     this.AV8GODINAI = gODINAISPLATE;
     this.AV9MJESECI = mJESECISPLATE;
     this.AV10DATUMN = DateTimeUtil.ResetTime(dATUMNAKOJIRACUNAMSTAROST);
     this.AV11MJESEC = mJESECODLASKA;
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Exemple #4
0
 public S_PLACA_RAD1GRowChangeEvent(S_PLACA_RAD1GDataSet.S_PLACA_RAD1GRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Exemple #5
0
 public void RemoveS_PLACA_RAD1GRow(S_PLACA_RAD1GDataSet.S_PLACA_RAD1GRow row)
 {
     this.Rows.Remove(row);
 }
Exemple #6
0
 public void AddS_PLACA_RAD1GRow(S_PLACA_RAD1GDataSet.S_PLACA_RAD1GRow row)
 {
     this.Rows.Add(row);
 }