Esempio n. 1
0
 /// <summary>
 /// 打印
 /// </summary>
 internal void m_mthPrint()
 {
     if (this.m_objViewer.dw.RowCount > 0)
     {
         com.digitalwave.iCare.gui.MedicineStore.clsCtl_Public clsPub = new com.digitalwave.iCare.gui.MedicineStore.clsCtl_Public();
         clsPub.ChoosePrintDialog(this.m_objViewer.dw, true);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 控件跳转及活动背景色
        /// </summary>
        private void m_mthInitJumpControls()
        {
            clsCtl_Public objCtl = new clsCtl_Public();

            objCtl.m_mthJumpControl(this, new Control[] {
                m_txtBEGINCALLFIGURE, m_txtBEGINWHOLESALEFIGURE, m_txtBEGINRETAILFIGURE, m_txtINSTORAGECALLFIGURE, m_txtINSTORAGWHOLESALEFIGURE, m_txtINSTORAGERETAILFIGURE,
                m_txtOUTSTORAGECALLFIGURE, m_txtOUTSTORAGEWHOLESALEFIGURE, m_txtOUTSTORAGERETAILFIGURE, m_txtOUTRETURNCALLFIGURE, m_txtOUTRETURNWHOLESALEFIGURE, m_txtOUTRETURNRETAILFIGURE,
                m_txtINRETURNCALLFIGURE, m_txtINRETURNWHOLESALEFIGURE, m_txtINRETURNRETAILFIGURE, m_txtREPEALCALLFIGURE, m_txtREPEALWHOLESALEFIGURE, m_txtREPEALRETAILFIGURE,
                m_txtCHECKCALLFIGURE, m_txtCHECKWHOLESALEFIGURE, m_txtCHECKRETAILFIGURE, m_txtADJUSTCALLFIGURE, m_txtADJUSTWHOLESALEFIGURE, m_txtADJUSTRETAILFIGURE,
                m_txtENDCALLFIGURE, m_txtENDWHOLESALEFIGURE, m_txtENDRETAILFIGURE
            }, Keys.Enter, true);

            objCtl.m_mthSetControlHighLight(this, Color.Moccasin);
            objCtl.m_mthSelectAllText(this);
        }
Esempio n. 3
0
        /// <summary>
        /// 控件跳转
        /// </summary>
        private void m_mthInitJumpControls()
        {
            clsCtl_Public objCtl = new clsCtl_Public();

            objCtl.m_mthJumpControl(this, new Control[] { m_cboApparentQuality, m_cboPackQuality, m_cboExamResult, m_txtExamerID }, Keys.Enter, false);
        }
Esempio n. 4
0
        /// <summary>
        /// 控件跳转
        /// </summary>
        private void m_mthInitJumpControls()
        {
            clsCtl_Public objCtl = new clsCtl_Public();

            objCtl.m_mthJumpControl(this, new Control[] { m_txtPackAmount, m_txtPackUnit, m_txtConversion, m_txtPackPrice, m_cmdOK }, Keys.Enter, false);
        }
Esempio n. 5
0
        private void frmMedicineOutReport_Load(object sender, EventArgs e)
        {
            this.objController = new clsCtl_MedicineOut();
            //datWindow.DataWindowObject = "outstorage_detailreport_cs";
            if (datWindow.DataWindowObject == "outstorage_detailreport_cs")
            {
                datWindow.Modify("t_titel.text='" + this.objController.m_objComInfo.m_strGetHospitalTitle() + "出库单(" + RoomName + ")'");

                datWindow.Modify("t_bigwrith.text='" + strBigwrith + "'");

                dtb.Columns.Add("validperiod_chr", typeof(System.String));
                dtb.Columns.Add("group_int", typeof(System.Int32));
                int intGroup = 0;
                for (int i = 0; i < dtb.Rows.Count; i++)
                {
                    if (i % 15 == 0)
                    {
                        intGroup++;
                    }
                    dtb.Rows[i]["group_int"] = intGroup;
                    if (dtb.Rows[i]["validperiod_dat"].ToString().StartsWith("0001"))
                    {
                        dtb.Rows[i]["validperiod_chr"] = DBNull.Value;
                    }
                    else
                    {
                        dtb.Rows[i]["validperiod_chr"] = Convert.ToDateTime(dtb.Rows[i]["validperiod_dat"]).ToString("yyyy-MM-dd");
                    }
                }
                dtb.Columns.Remove("validperiod_dat");
            }
            else
            {
                datWindow.Modify("t_titel.text='" + this.objController.m_objComInfo.m_strGetHospitalTitle() + "药品调拔单'");
            }
            datWindow.Modify("m_storagename.text='" + RoomName + "'");
            datWindow.Modify("m_txtreceivedept.text='" + ReceiveDept + "'");
            datWindow.Modify("m_txtman.text='" + Man + "'");
            datWindow.Modify("m_txtman2.text='" + Man + "'");
            datWindow.Modify("m_dtpdate.text='" + zDate + "'");
            datWindow.Modify("m_txtoutputorder.text='" + OutputOrder + "'");

            int m_intShow;
            clsDcl_Purchase_DetailReport m_objDon = new clsDcl_Purchase_DetailReport();

            m_objDon.m_lngGetIfShowInfo(out m_intShow);
            if (m_intShow == 0)
            {
                datWindow.Modify("t_info.text=''");
            }
            datWindow.PrintProperties.Preview = true;
            datWindow.Retrieve(dtb);
            datWindow.CalculateGroups();
            datWindow.Refresh();

            if (i_showType == 0)
            {
                this.Visible = false;
                clsCtl_Public clsPub = new clsCtl_Public();
                clsPub.ChoosePrintDialog(datWindow, true);

                this.Close();
            }
        }
Esempio n. 6
0
        private void m_cmdPrint_Click(object sender, EventArgs e)
        {
            clsCtl_Public clsPub = new clsCtl_Public();

            clsPub.ChoosePrintDialog(datWindow, true);
        }