Esempio n. 1
0
        public override DataSet Clone()
        {
            DSLCompany cln = ((DSLCompany)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
Esempio n. 2
0
        public DSLCompany GetCompanyList()
        {
            DSLCompany ds = new DSLCompany();

            sqlDACompany.SelectCommand.Parameters["@companyId"].Value = null;
            sqlDACompany.Fill(ds);
            return(ds);
        }
Esempio n. 3
0
        public DSLCompany GetCompany(int companyId)
        {
            DSLCompany ds = new DSLCompany();

            sqlDACompany.SelectCommand.Parameters["@companyId"].Value = companyId;
            sqlDACompany.Fill(ds);
            if (ds.TCompanies.Count == 1)
            {
                return(ds);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 4
0
 public void GetCompanyList(DSLCompany ds)
 {
     sqlDACompany.SelectCommand.Parameters["@companyId"].Value = null;
     sqlDACompany.Fill(ds);
 }
Esempio n. 5
0
 public void GetCompany(int companyId, DSLCompany ds)
 {
     sqlDACompany.SelectCommand.Parameters["@companyId"].Value = companyId;
     sqlDACompany.Fill(ds);
 }