Exemple #1
0
        void _OScheduledControl__OnClick(OScheduledControl obj)
        {
            try
            {



                if (pnlThumbnailResult.Controls.Count <= 0)
                {

                    return;
                }

            }
            catch
            {
            }
            finally
            {


            }
        }
Exemple #2
0
        void CreateScheduledThumbnail(DataTable _dtAcquisitionDataSource, string RegNumber2)
        {
            ClearAllThumbnailSchedule();
            if (_dtAcquisitionDataSource == null) return;
            m_intCurrentDetail_ID = -1;
            try
            {
                // List<OScheduledControl> lstCtrl = new List<OScheduledControl>();
                foreach (DataRow dr in _dtAcquisitionDataSource.Rows)
                {
                    OScheduledControl _OScheduledControl = new OScheduledControl(txtImgDir.Text.Trim() + @"\" + SubDirLv1(RegNumber2) + @"\" + SubDirLv2_Patient(drPatient) + @"\" + RegNumber2 + "_" + Utility.Int32Dbnull(dr["DETAIL_ID"]).ToString() + "_" + Utility.sDbnull(dr["ANATOMY_CODE"], "") + "_" + Utility.sDbnull(dr["PROJECTION_CODE"], ""), Utility.Int32Dbnull(dr["REG_ID"], ""), Utility.Int32Dbnull(dr["DETAIL_ID"], ""), Utility.sDbnull(dr["ANATOMY_CODE"], ""), Utility.sDbnull(dr["PROJECTION_CODE"], ""), Utility.sDbnull(dr["BODYSIZE_CODE"], ""), Utility.sDbnull(dr["VN_ANATOMY_NAME"], ""), Utility.sDbnull(dr["EN_ANATOMY_NAME"], ""), Utility.sDbnull(dr["VN_PROJECTION_NAME"], ""), Utility.sDbnull(dr["EN_PROJECTION_NAME"], ""), Utility.sDbnull(dr["VN_BODYSIZE_NAME"], ""), Utility.sDbnull(dr["EN_BODYSIZE_NAME"], ""), Utility.DecimaltoDbnull(dr["kVp"], 0.0), Utility.Int32Dbnull(dr["mA"], 0), Utility.DecimaltoDbnull(dr["mAs"], 0), Utility.Int32Dbnull(dr["A_STT"], 0), Utility.Int32Dbnull(dr["P_STT"], 0), Utility.Int32Dbnull(dr["PRINTCOUNT"], 0), Utility.Int32Dbnull(dr["Status"], 0));
                    _OScheduledControl._OnClick += new OScheduledControl.OnClick(_OScheduledControl__OnClick);
                    _OScheduledControl._OnDoubleClick += new OScheduledControl.OnDoubleClick(_OScheduledControl__OnDoubleClick);

                    pnlThumbnailResult.Controls.Add(_OScheduledControl);
                    _OScheduledControl._AnatomyObject.Size = new Size(109, 108);
                    _OScheduledControl._Title.Size = new Size(154, 29);
                    _OScheduledControl._IconObject.Size = new Size(45, 108);
                    _OScheduledControl.Size = new Size(154, 137);// originalSize;  
                    // lstCtrl.Add(_OScheduledControl);
                }
                //pnlThumbnailResult.Controls.AddRange(lstCtrl.ToArray());
            }
            catch
            {
            }
        }
Exemple #3
0
 void _OScheduledControl__OnDoubleClick(OScheduledControl obj)
 {
     try
     {
         AutoSelectSchedule = true;
         _Detail_ID = obj.DETAIL_ID;
         RepeatAcq();
     }
     catch
     {
     }
 }
Exemple #4
0
 public OScheduledControl Copy()
 {
     OScheduledControl newObj = new OScheduledControl(this.fileName, this.REG_ID, this.DETAIL_ID, this.A_Code, this.P_Code, this.B_Code, this.A_Vn_Name, this.A_En_Name, this.P_Vn_Name, this.P_En_Name, this.B_Vn_Name, this.B_En_Name,this.kVp,this.mA,this.mAs, this.A_STT, this.P_STT,this.PrintCount, this.Status);
     return newObj;
 }