Example #1
0
        public void reasonAppealDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getReasonAppealList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int           id            = Convert.ToInt16(item["reason_appeal_id"].ToString());
                    string        name          = item["reason_appeal_name"].ToString();
                    CReasonAppeal reasonAppItem = new CReasonAppeal(id, name);
                    reasonAppealItems.Add(reasonAppItem);

                    reasonAppealBox.Items.Add(reasonAppItem);
                }
            }
        }
Example #2
0
        public void reasonAppealDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getReasonAppealList(out loadData))
            {

                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int id = Convert.ToInt16(item["reason_appeal_id"].ToString());
                    string name = item["reason_appeal_name"].ToString();
                    CReasonAppeal reasonAppItem = new CReasonAppeal(id, name);
                    reasonAppealItems.Add(reasonAppItem);

                    reasonAppealBox.Items.Add(reasonAppItem);
                }
            }
        }