Exemple #1
0
    Boolean ImportFile(string strFilePath1)
    {
        string        _yrmo      = ddlYrmo.SelectedItem.Text;
        bool          importStat = false;
        ImportYEBData vobj       = new ImportYEBData();

        ImportYEBData.Rollback("COB" + Session["pilotind"].ToString(), _yrmo);
        ImportYEBData.Rollback("COB", _yrmo);
        _counter = vobj.importCobraNP_YEB(_yrmo, strFilePath1, Session["pilotind"].ToString());
        ImportYEBData.insertImportStatus(_yrmo, source);
        Session["taskId"] = Convert.ToInt32(Session["taskId"]) + 1;
        Audit.auditUserTaskI(Session.SessionID, Session["mid"].ToString(), Session["taskId"].ToString(), "YEB", "YEB Imports", "YEB_Cobra", "YEB Detail", _yrmo, _counter);
        importStat = true;
        return(importStat);
    }