public A_AttendanceRealTime_Add(A_AttendanceRealTime frm)
        {
            InitializeComponent();
            frmARt = frm;

            bindcombox(ddlClassAdd, ddlTimerIntervalAdd);
            sBLL.GetOutWellStationInfo(cbOutStation);
            dBLL.getDept(ddlDeptAdd);
           // MessageBox.Show(codeid.ToString());
            if (codeid != null && codeid.ToString().Length > 0)
            {
                txtBlockAdd.Text = codeid.ToString();
            }
            if (name != null && name.ToString().Length > 0)
            {
                txtUserNameAdd.Text = name;
            }
            if (deptname != null && deptname.ToString().Length > 0)
            {
                textBox_dep.Text = deptname;
            }
            try
            {
                if (strInWellDateTime != null)
                {
                    dtpBeginTimeAdd.Value = Convert.ToDateTime(strInWellDateTime);
                }
            }
            catch
            {

                dtpBeginTimeAdd.Value = DateTime.Now;
            }
            if (strShortName != null && strShortName.Length>0)
            {
                ddlTimerIntervalAdd.Text = strShortName;
            }
        }
        public A_AttendanceRealTime_Add(A_AttendanceRealTime frm)
        {
            InitializeComponent();
            frmARt = frm;

            bindcombox(ddlClassAdd, ddlTimerIntervalAdd);
            sBLL.GetOutWellStationInfo(cbOutStation);
            dBLL.getDept(ddlDeptAdd);
            // MessageBox.Show(codeid.ToString());
            if (codeid != null && codeid.ToString().Length > 0)
            {
                txtBlockAdd.Text = codeid.ToString();
            }
            if (name != null && name.ToString().Length > 0)
            {
                txtUserNameAdd.Text = name;
            }
            if (deptname != null && deptname.ToString().Length > 0)
            {
                textBox_dep.Text = deptname;
            }
            try
            {
                if (strInWellDateTime != null)
                {
                    dtpBeginTimeAdd.Value = Convert.ToDateTime(strInWellDateTime);
                }
            }
            catch
            {
                dtpBeginTimeAdd.Value = DateTime.Now;
            }
            if (strShortName != null && strShortName.Length > 0)
            {
                ddlTimerIntervalAdd.Text = strShortName;
            }
        }