Beispiel #1
0
        public static List <string[]> GetLoadSeedCooperative()
        {
            DataTable       nTable = Seed_Cooperative_Info.GetListSeed();
            List <string[]> li_str = ConvertTableToSting(nTable);

            return(li_str);
        }
Beispiel #2
0
        public static List <string[]> GetLoadSeedCooperativeTypeKey(int TypeKey)
        {
            //int test = Convert.ToInt32(TypeKey);
            DataTable       nTable = Seed_Cooperative_Info.GetListSeed(TypeKey);
            List <string[]> li_str = ConvertTableToSting(nTable);

            return(li_str);
        }
Beispiel #3
0
        protected string LoadSeedCooperative(string id)
        {
            DataTable nTable    = Seed_Cooperative_Info.GetListSeed();
            string    LSeedCoop = "";

            for (int i = 0; i < nTable.Rows.Count; i++)
            {
                LSeedCoop += "{SeedsKey:'" + nTable.Rows[i]["SeedsKey"] + "',SeedsName:'" + nTable.Rows[i]["SeedsName"] + "',Cooperative_Name:'" + nTable.Rows[i]["Cooperative_Name"] + "',Cooperative_Key:'" + nTable.Rows[i]["Cooperative_Key"] + "',Images:'" + nTable.Rows[i]["Images"].ToString().Substring(3) + "',Phone:'" + nTable.Rows[i]["Phone"] + "',Address:'" + nTable.Rows[i]["Address"] + "',VietGAPCode:'" + nTable.Rows[i]["VietGAPCode"] + "'},";
            }
            return(LSeedCoop);
        }