public static long?GetIdCompanyByCUIT(string cuit) { Data.MSKEntities E = Data.singleton.cls_static_MksModel.GetEntity(); List <long?> IdCompany = E.SelectIdCompanyByCUIT(cuit).ToList(); return(IdCompany[0]); }
public static int processPage(string Page, int idCompany) { int count = 0; try { Data.MSKEntities E = Data.singleton.cls_static_MksModel.GetEntity(); string[] lineas = Page.Split(new string[] { "[ENDLINE]" }, StringSplitOptions.None); foreach (string l in lineas) { string[] campos = l.Split(new string[] { "|" }, StringSplitOptions.None); E.InsertPrice(long.Parse(campos[1]), decimal.Parse(campos[2]), idCompany); count++; } } catch (Exception e) { } return(count); }