Exemplo n.º 1
0
        /// <summary>
        /// 获得公司类型
        /// </summary>
        /// <returns></returns>
        private ArrayList GetEntityDtsVendorType(DevExpress.XtraEditors.CheckedListBoxControl p_CheckList)
        {
            ArrayList al = new ArrayList();

            for (int i = 0; i < p_CheckList.ItemCount; i++)
            {
                if (p_CheckList.GetItemCheckState(i) == CheckState.Checked)
                {
                    VendorTypeDts entity = new VendorTypeDts();
                    entity.VendorID     = txtVendorID.Text.Trim();
                    entity.VendorTypeID = SysConvert.ToInt32(p_CheckList.GetItemValue(i));
                    al.Add(entity);
                }
            }
            return(al);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取面料类别
        /// </summary>
        /// <param name="p_CheckList"></param>
        /// <returns></returns>
        private string GetCheckMLLB(DevExpress.XtraEditors.CheckedListBoxControl p_CheckList)
        {
            string MLLB = string.Empty;

            for (int i = 0; i < p_CheckList.ItemCount; i++)
            {
                if (p_CheckList.GetItemCheckState(i) == CheckState.Checked)
                {
                    if (MLLB == string.Empty)
                    {
                        MLLB += p_CheckList.GetItemValue(i).ToString();
                    }
                    else
                    {
                        MLLB += "," + p_CheckList.GetItemValue(i).ToString();
                    }
                }
            }
            return(MLLB);
        }