コード例 #1
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmsp_id_detaljiSelect2 = this.connDefault.GetCommand("S_PLACA_ID_REDOVI", true);
            this.cmsp_id_detaljiSelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmsp_id_detaljiSelect2.IDbCommand.Parameters.Clear();
            this.cmsp_id_detaljiSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@idobracun", this.AV8idobrac));
            this.cmsp_id_detaljiSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@mjeseCISPLATE", this.AV9mjeseCI));
            this.cmsp_id_detaljiSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@godinaISPLATE", this.AV10godina));
            this.cmsp_id_detaljiSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@VOLONTERI", this.AV11VOLONT));
            this.cmsp_id_detaljiSelect2.ErrorMask |= ErrorMask.Lock;
            this.sp_id_detaljiSelect2              = this.cmsp_id_detaljiSelect2.FetchData();
            while (this.cmsp_id_detaljiSelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmsp_id_detaljiSelect2.HasMoreRows = this.sp_id_detaljiSelect2.Read();
            }
            int num = 0;

            while (this.cmsp_id_detaljiSelect2.HasMoreRows && (num != maxRows))
            {
                this.rowsp_id_detalji["ididobrasca"]      = RuntimeHelpers.GetObjectValue(this.sp_id_detaljiSelect2["ididobrasca"]);
                this.rowsp_id_detalji["REDNIBROJ"]        = RuntimeHelpers.GetObjectValue(this.sp_id_detaljiSelect2["rednibroj"]);
                this.rowsp_id_detalji["IDOPCINE"]         = RuntimeHelpers.GetObjectValue(this.sp_id_detaljiSelect2["idopcine"]);
                this.rowsp_id_detalji["NAZIVOPCINE"]      = RuntimeHelpers.GetObjectValue(this.sp_id_detaljiSelect2["nazivopcine"]);
                this.rowsp_id_detalji["obracunaniporez"]  = RuntimeHelpers.GetObjectValue(this.sp_id_detaljiSelect2["obracunaniporez"]);
                this.rowsp_id_detalji["obracunaniprirez"] = RuntimeHelpers.GetObjectValue(this.sp_id_detaljiSelect2["obracunaniprirez"]);
                this.rowsp_id_detalji["obracunanoukupno"] = RuntimeHelpers.GetObjectValue(this.sp_id_detaljiSelect2["obracunanoukupno"]);
                this.AddRowSp_id_detalji();
                num++;
                this.rowsp_id_detalji = this.sp_id_detaljiSet.sp_id_detalji.Newsp_id_detaljiRow();
                this.cmsp_id_detaljiSelect2.HasMoreRows = this.sp_id_detaljiSelect2.Read();
            }
            this.sp_id_detaljiSelect2.Close();
            this.Cleanup();
        }
コード例 #2
0
 public sp_id_detaljiDataSet.sp_id_detaljiRow Addsp_id_detaljiRow(int ididobrasca, string rEDNIBROJ, string iDOPCINE, string nAZIVOPCINE, decimal obracunaniporez, decimal obracunaniprirez, decimal obracunanoukupno)
 {
     sp_id_detaljiDataSet.sp_id_detaljiRow row = (sp_id_detaljiDataSet.sp_id_detaljiRow) this.NewRow();
     row.ItemArray = new object[] { ididobrasca, rEDNIBROJ, iDOPCINE, nAZIVOPCINE, obracunaniporez, obracunaniprirez, obracunanoukupno };
     this.Rows.Add(row);
     return(row);
 }
コード例 #3
0
 public virtual int FillPage(sp_id_detaljiDataSet dataSet, string idobracun, string mjeseCISPLATE, string godinaISPLATE, short vOLONTERI, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.sp_id_detaljiSet = dataSet;
     this.rowsp_id_detalji = this.sp_id_detaljiSet.sp_id_detalji.Newsp_id_detaljiRow();
     this.SetFillParameters(idobracun, mjeseCISPLATE, godinaISPLATE, vOLONTERI);
     this.AV8idobrac = idobracun;
     this.AV9mjeseCI = mjeseCISPLATE;
     this.AV10godina = godinaISPLATE;
     this.AV11VOLONT = vOLONTERI;
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
コード例 #4
0
 public sp_id_detaljiRowChangeEvent(sp_id_detaljiDataSet.sp_id_detaljiRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
コード例 #5
0
 public void Removesp_id_detaljiRow(sp_id_detaljiDataSet.sp_id_detaljiRow row)
 {
     this.Rows.Remove(row);
 }
コード例 #6
0
 public void Addsp_id_detaljiRow(sp_id_detaljiDataSet.sp_id_detaljiRow row)
 {
     this.Rows.Add(row);
 }