protected void btn_reconAgn_Click(object sender, EventArgs e) { string yrmo = ddlYrmo.SelectedItem.Text.ToString(); lbl_error.Text = ""; try { ReconDAL.pastReconcileDelete(yrmo, "DOM"); //if (RptsImported()) //Removed this if condition as it is not applicable to Dom Recon //R.A 10/30/2009 { ReconDAL.DomesticReconcile(yrmo, "ANTH_ACT", "GRS", "ACT"); ReconDAL.DomesticReconcile(yrmo, "ANTH_RET", "RET%", "RET"); ReconDAL.DomesticReconcile(yrmo, "ANTH_COB", "ADP", "COB"); ShowResult(); auditRecon(yrmo); } } catch (Exception ex) { ReconDAL.pastReconcileDelete(yrmo, "DOM"); lbl_error.Text = "Error in re-reconciliation.<br />" + ex.Message; } }
protected void btn_reimport_Click(object sender, EventArgs e) { string yrmo = ddlYrmo.SelectedItem.Text; lbl_error.Text = ""; try { ImportDAL iObj = new ImportDAL(); iObj.Rollback("HTH", yrmo); ReconDAL.pastReconcileDelete(yrmo, "INTL"); MultiView1.SetActiveView(view_main); } catch (Exception ex) { lbl_error1.Text = "Error in re-importing file.<br />" + ex.Message; } }
protected void btn_reconAgn_Click(object sender, EventArgs e) { string yrmo = ddlYrmo.SelectedItem.Text.ToString(); lbl_error.Text = ""; try { ReconDAL.pastReconcileDelete(yrmo, "INTL"); if (RptsImported()) { ReconDAL.IntlReconcile(yrmo); ShowResult(); auditRecon(yrmo); } } catch (Exception ex) { ReconDAL.pastReconcileDelete(yrmo, "INTL"); lbl_error.Text = "Error in re-reconciliation.<br />" + ex.Message; } }
protected void btn_reconcile_Click(object sender, EventArgs e) { string yrmo = ddlYrmo.SelectedItem.Text; if (Page.IsValid) { lbl_error.Text = ""; try { if (RptsImported()) { ReconDAL.insertEAPRecon(yrmo); ShowResult(); auditRecon(yrmo); } } catch (Exception ex) { ReconDAL.pastReconcileDelete(yrmo, "EAP"); lbl_error.Text = "Error in reconciling<br />" + ex.Message; } } }