Exemplo n.º 1
0
 public override void ShowViewForm(long id)
 {
     DataRow row = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle);
     if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.NghiPhep)
     {
         frmNghiPhep frm = new frmNghiPhep(id, null);
         ProtocolForm.ShowModalDialog(this, frm);
     }
     else if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.DiSomVeTre)
     {
         frmDiTreVeSom frm = new frmDiTreVeSom(id, null);
         ProtocolForm.ShowModalDialog(this, frm);
     }
     else
     {
         frmTimeInOut frm = new frmTimeInOut(HelpNumber.ParseInt64(row["NV_ID"]), (DateTime)row["NGAY_LAM_VIEC"], null);
         ProtocolForm.ShowModalDialog(this, frm);
     }
 }
Exemplo n.º 2
0
        public override void ShowViewForm(long id)
        {
            DataRow row = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle);
            if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.NghiPhep)
            {
                frmNghiPhep frm = new frmNghiPhep(id, null);
                HelpProtocolForm.ShowModalDialog(this, frm);

            }
            else if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.XacNhanLamViec)
            {
                frmPhieuXNLamViec frm = new frmPhieuXNLamViec(row["ID"], null);
                HelpProtocolForm.ShowModalDialog(this, frm);
            }
            else if (HelpNumber.ParseInt32(row["LOAI"]) == (Int32)TimeInOutType.RaVaoCongTy)
            {
                frmPhieuRaVaoCty frm = new frmPhieuRaVaoCty(row["ID"], null);
                HelpProtocolForm.ShowModalDialog(this, frm);
            }
            else
            {
                frmTimeInOut frm = new frmTimeInOut(HelpNumber.ParseInt64(row["NV_ID"]), (DateTime)row["NGAY_LAM_VIEC"], null);
                HelpProtocolForm.ShowModalDialog(this, frm);
            }
        }
Exemplo n.º 3
0
 public override long[] ShowAddForm()
 {
     frmTimeInOut frm = new frmTimeInOut();
     frm.ReFindData += new frmTimeInOut.RefreshGird(Fix.PLRefresh);
     ProtocolForm.ShowModalDialog(this, frm);
     return null;
 }
Exemplo n.º 4
0
 public override long[] ShowAddForm()
 {
     frmTimeInOut frm = new frmTimeInOut();
     //frm.ReFindData += new frmTimeInOut.RefreshGird(PLBuildQueryFilter);
     HelpProtocolForm.ShowModalDialog(this, frm);
     return null;
 }