示例#1
0
 private void m_cmdPrint_Click(object sender, EventArgs e)
 {
     if (this.dw.RowCount > 0)
     {
         com.digitalwave.iCare.gui.MedicineStore.clsCtl_Public clsPub = new com.digitalwave.iCare.gui.MedicineStore.clsCtl_Public();
         clsPub.ChoosePrintDialog(this.dw, true);
     }
 }
示例#2
0
        public void m_mthPrint()
        {
            this.m_objViewer.ds.LibraryList      = Application.StartupPath + "\\pb_ms.pbl";
            this.m_objViewer.ds.DataWindowObject = "account_gysy_ds";
            string HospitalTitle = this.m_objComInfo.m_strGetHospitalTitle();
            string StorageName   = string.Empty;

            com.digitalwave.iCare.gui.MedicineStore.clsCtl_Public objPub = new com.digitalwave.iCare.gui.MedicineStore.clsCtl_Public();
            objPub.m_lngGetStorageName(false, this.m_objViewer.m_strDrugStoreid, out StorageName);
            //

            #region 零售金额比较
            double dblTemp = 0d;

            string strRetailHint = string.Empty;//零售金额是否正确

            double dblRetailMoney = 0d;
            if (double.TryParse(m_objViewer.m_lblBEGINRETAILFIGURE_INT.Text, out dblTemp))
            {
                dblRetailMoney += dblTemp;
            }
            if (double.TryParse(m_objViewer.m_lblINSTORAGERETAILFIGURE_INT.Text, out dblTemp))
            {
                dblRetailMoney += dblTemp;
            }
            if (double.TryParse(m_objViewer.m_lblADJUSTRETAILFIGURE_INT.Text, out dblTemp))
            {
                dblRetailMoney += dblTemp;
            }


            if (double.TryParse(m_objViewer.m_lblOUTSTORAGERETAILFIGURE_INT.Text, out dblTemp))
            {
                dblRetailMoney -= dblTemp;
            }
            if (double.TryParse(m_objViewer.m_lblRECIPERETAILFIGURE_INT.Text, out dblTemp))
            {
                dblRetailMoney -= dblTemp;
            }
            if (double.TryParse(m_objViewer.m_lblPutMed.Text, out dblTemp))
            {
                dblRetailMoney -= dblTemp;
            }

            if (double.TryParse(m_objViewer.m_lblENDRETAILFIGURE_INT.Text, out dblTemp))
            {
                dblRetailMoney = Math.Round(dblRetailMoney, 4);
                dblTemp        = Math.Round(dblTemp, 4);
                if (dblRetailMoney == dblTemp)
                {
                    strRetailHint = "相等";
                }
                else
                {
                    strRetailHint = (dblTemp - dblRetailMoney).ToString("0.0000");
                }
            }
            #endregion
            //
            this.m_objViewer.ds.Modify("t_titel.text='" + HospitalTitle + "'");
            this.m_objViewer.ds.Modify("t_begindate.text='" + this.m_objViewer.m_txtBeginTime.Text + "'");
            this.m_objViewer.ds.Modify("t_enddate.text='" + this.m_objViewer.m_txtEndTime.Text + "'");
            this.m_objViewer.ds.Modify("t_begin.text='" + this.m_objViewer.m_lblBEGINRETAILFIGURE_INT.Text + "'");
            this.m_objViewer.ds.Modify("t_dept.text='" + StorageName + "'");
            this.m_objViewer.ds.Modify("t_instorage.text='" + this.m_objViewer.m_lblINSTORAGERETAILFIGURE_INT.Text + "'");
            this.m_objViewer.ds.Modify("t_outstorage.text='" + this.m_objViewer.m_lblOUTSTORAGERETAILFIGURE_INT.Text + "'");
            this.m_objViewer.ds.Modify("t_recipe.text='" + this.m_objViewer.m_lblRECIPERETAILFIGURE_INT.Text + "'");
            this.m_objViewer.ds.Modify("t_putmed.text='" + this.m_objViewer.m_lblPutMed.Text + "'");
            this.m_objViewer.ds.Modify("t_end.text='" + this.m_objViewer.m_lblENDRETAILFIGURE_INT.Text + "'");
            this.m_objViewer.ds.Modify("t_margin.text='" + strRetailHint.ToString() + "'");
            this.m_objViewer.ds.Modify("t_just.text='" + this.m_objViewer.m_lblADJUSTRETAILFIGURE_INT.Text + "'");
            com.digitalwave.iCare.gui.HIS.clsPublic.PrintDialog(this.m_objViewer.ds);
        }
示例#3
0
 /// <summary>
 /// 获取库房名称
 /// </summary>
 /// <param name="p_blnForDrugStore">是否药房</param>
 /// <param name="p_strStorageID">库房ID</param>
 /// <param name="p_strStroageName">库房名称</param>
 /// <returns></returns>
 public static long m_lngGetStorageName(bool p_blnForDrugStore, string p_strStorageID, out string p_strStroageName)
 {
     com.digitalwave.iCare.gui.MedicineStore.clsCtl_Public objPub = new com.digitalwave.iCare.gui.MedicineStore.clsCtl_Public();
     return(objPub.m_lngGetStorageName(p_blnForDrugStore, p_strStorageID, out p_strStroageName));
 }