Esempio n. 1
0
        public List<KWListDetailMD> GetDetialedMD()
        {
            List<KWListDetailMD> result = new List<KWListDetailMD>();
            IList list = GetDataList();
            IEnumerator iter = m_dataList.GetEnumerator();
            string kwTbName = GetTableName(BOIDEnum.KeyWord);
            while (iter.MoveNext())
            {
                KWListMD kwMd = ((JObject)iter.Current).ConvertToTarget<KWListMD>();
                KWListDetailMD bo = new KWListDetailMD(kwMd);
                string kwStr = string.Empty;
                foreach (int kwId in kwMd.KeyWrodIds)
                {
                    JObject jo = m_dbConn.GetTableData(kwTbName, kwId);
                    kwStr += jo.GetValue("Name").ToString() + ", ";
                }
                if (kwStr.Length > 0)
                {
                    kwStr = kwStr.Substring(0, kwStr.Length - 2);
                }
                bo.KeyWords = kwStr;

                result.Add(bo);
            }
            return result;
        }
Esempio n. 2
0
        public List <KWListDetailMD> GetDetialedMD()
        {
            List <KWListDetailMD> result = new List <KWListDetailMD>();
            IList       list             = GetDataList();
            IEnumerator iter             = m_dataList.GetEnumerator();
            string      kwTbName         = GetTableName(BOIDEnum.KeyWord);

            while (iter.MoveNext())
            {
                KWListMD       kwMd  = ((JObject)iter.Current).ConvertToTarget <KWListMD>();
                KWListDetailMD bo    = new KWListDetailMD(kwMd);
                string         kwStr = string.Empty;
                foreach (int kwId in kwMd.KeyWrodIds)
                {
                    JObject jo = m_dbConn.GetTableData(kwTbName, kwId);
                    kwStr += jo.GetValue("Name").ToString() + ", ";
                }
                if (kwStr.Length > 0)
                {
                    kwStr = kwStr.Substring(0, kwStr.Length - 2);
                }
                bo.KeyWords = kwStr;

                result.Add(bo);
            }
            return(result);
        }
Esempio n. 3
0
 private void KWListRetProc(Form form, object data)
 {
     BOKWList bo = (BOKWList)data;
     if (bo == null)
         return;
     KWListMD tb = (KWListMD)bo.GetBOTable();
     KWListDetailMD dtb = new KWListDetailMD(tb);
     dtb.KeyWords = bo.GetKetWordString();
     objList.AddObject(dtb);
 }
Esempio n. 4
0
 private void KWLMDRetProc(Form form, object data)
 {
     BOKWList kwlBo = (BOKWList)data;
     KWListDetailMD detailedKwl = new KWListDetailMD((KWListMD)kwlBo.GetBOTable());
     //List<CountryMD> cty = mktBo.GetMktCountry();
     detailedKwl.KeyWords = kwlBo.GetKetWordString();
     OLVListItem olv = objList.GetItem(objList.LastHitInfo.RowIndex);
     olv.RowObject = detailedKwl;
     objList.RefreshItem(olv);
     //objList.AddObject(detailedKwl);
 }