Пример #1
0
 private void cmdOK_Click(object sender, System.EventArgs e)
 {
     if (lsvCategory.Items.Count > 0)
     {
         m_objYBGD05_VO = new clsYBGD05_VO();
         if (lsvCategory.SelectedItems.Count == 0)
         {
             //m_objYBGD05_VO=((clsYBGD05_VO)lsvCategory.Items[0].Tag);
             m_objYBGD05_VO.m_strZDFL = ((DataRow)lsvCategory.Items[0].Tag)["DMCODE"].ToString().Trim();
             m_objYBGD05_VO.m_strFLMC = ((DataRow)lsvCategory.Items[0].Tag)["ZHSM"].ToString().Trim();
         }
         else
         {
             m_objYBGD05_VO.m_strZDFL = ((DataRow)lsvCategory.SelectedItems[0].Tag)["DMCODE"].ToString().Trim();
             m_objYBGD05_VO.m_strFLMC = ((DataRow)lsvCategory.SelectedItems[0].Tag)["ZHSM"].ToString().Trim();
         }
     }
     else
     {
         m_objYBGD05_VO = null;
     }
     Close();
 }
Пример #2
0
 private void cmdCancel_Click(object sender, System.EventArgs e)
 {
     m_objYBGD05_VO = null;
     Close();
 }