private void btnVisualizzaProrata_Click(object sender, EventArgs e) { if (Meta.IsEmpty) { return; } int esercizio_rif = CfgFn.GetNoNullInt32(Meta.GetSys("esercizio")) - 1; DataSet Out = Meta.Conn.CallSP("compute_unified_prorata", new object[1] { esercizio_rif }); if (Out == null) { return; } DataTable tSituation = new DataTable(); addColumn(tSituation); popolaTabella(Out, tSituation); DataSet D = new DataSet(); D.Tables.Add(tSituation); frmSituazioneViewer view = new frmSituazioneViewer(D); view.Show(); }
private void btnSituazione_Click(object sender, System.EventArgs e) { int esercizio; string codicefondops; DataAccess Conn = Meta.Conn; try { DataRow MyRow = HelpForm.GetLastSelected(DS.pettycash); codicefondops = MyRow["idpettycash"].ToString(); } catch { return; } esercizio = Convert.ToInt16(Meta.GetSys("esercizio")); DataSet Out = Conn.CallSP("show_pettycash", new Object[3] { Meta.GetSys("datacontabile"), esercizio, codicefondops } ); if (Out == null) { return; } Out.Tables[0].TableName = "Situazione fondo economale"; frmSituazioneViewer View = new frmSituazioneViewer(Out); View.Show(); }
private void btnDoSituazione_Click(object sender, System.EventArgs e) { DataRow MyRow = HelpForm.GetLastSelected(DS.inventorytree); object idclass = (MyRow != null?MyRow["idinv"]:null); DataSet Out = Conn.CallSP("show_inventorytree", new Object[3] { Meta.GetSys("datacontabile"), idclass, Meta.GetSys("esercizio") } ); if (Out == null) { return; } Out.Tables[0].TableName = "Situazione classific.inventario"; frmSituazioneViewer view = new frmSituazioneViewer(Out); view.Show(); }
private void btnRiepilogo_Click(object sender, EventArgs e) { object ymainivapay = DBNull.Value; object nmainivapay = DBNull.Value; DataRow MyRow = HelpForm.GetLastSelected(DS.mainivapay); if (MyRow != null) { ymainivapay = MyRow["ymainivapay"]; nmainivapay = MyRow["nmainivapay"]; DataSet Out = Conn.CallSP("show_mainivapay", new Object[2] { ymainivapay, nmainivapay }); if (Out == null) { return; } Out.Tables[0].TableName = "Situazione liquidazione"; frmSituazioneViewer view = new frmSituazioneViewer(Out); view.Show(); } }