Example #1
0
 private void txtNo_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)13)
     {
         if (this.txtNo.Text != "")
         {
             string p_strName = "";
             string empID     = "";
             string p_strID   = this.txtNo.Text.Trim();
             clsDomainControlMedStore objcontrol = new clsDomainControlMedStore();
             objcontrol.m_lngfinedata(p_strID, out p_strName, out empID);
             if (p_strName == "")
             {
                 this.txtname.Text = "错误的员工号";
             }
             else
             {
                 this.txtNo.Tag    = empID;
                 this.txtname.Text = p_strName;
             }
             this.m_txtBreakReMark.Focus();
         }
         else
         {
             this.txtname.Text = "工号不能为空";
             this.txtname.Focus();
         }
     }
 }
Example #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public clsControlMedStoreAcct()
 {
     //
     // TODO: 在此处添加构造函数逻辑
     //
     m_objManage    = new clsDomainControlMedStore();
     m_objMedStore  = new clsMedStore_VO();
     m_objOperator  = new clsEmployeeVO();
     m_objCurPeriod = new clsPeriod_VO();
 }
 /// <summary>
 ///
 /// </summary>
 public clsControlMedStoreMedAppl()
 {
     m_objManage      = new clsDomainControlMedStore();
     m_objMedStore    = new clsMedStore_VO();
     m_objOperator    = new clsEmployeeVO();
     m_objStorages    = new clsStorage_VO[0];
     m_objDoAddNewArr = new clsMedStoreMedApplDe_VO[0];
     m_objDoUpdateArr = new clsMedStoreMedApplDe_VO[0];
     m_objDoDeleteArr = new clsMedStoreMedApplDe_VO[0];
 }
Example #4
0
        /// <summary>
        /// 获得所有的药品资料
        /// </summary>
        public static long m_lngGetMedicine(out DataTable dtbResult)
        {
            long lngRes = 0;

            dtbResult = null;
            clsDomainControlMedStore objManage = new clsDomainControlMedStore();

            lngRes = objManage.m_lngGetMedicine(out dtbResult);

            return(lngRes);
        }
Example #5
0
        /// <summary>
        /// 获得所有的药品资料
        /// </summary>
        public static long m_lngGetMed(string strSQL, out clsMedStoreDetail_VO[] objResults)
        {
            long lngRes = 0;

            objResults = new clsMedStoreDetail_VO[0];

            clsDomainControlMedStore objManage = new clsDomainControlMedStore();

            lngRes = objManage.m_lngGetMedStoreDetailByAny(strSQL, out objResults);

            return(lngRes);
        }
Example #6
0
 private void m_btnQuery_Click(object sender, EventArgs e)
 {
     if (int.Parse(this.m_cboSelPeriodBegion.SelectItemValue) > int.Parse(this.m_cboSelPeriodEnd.SelectItemValue))
     {
         MessageBox.Show("开始财务期不能大于结束财务期!");
     }
     else
     {
         ArrayList itemlist = new ArrayList();
         clsDomainControlMedStore domain = new clsDomainControlMedStore();
         for (int i1 = this.m_cboSelPeriodBegion.SelectedIndex; i1 <= this.m_cboSelPeriodEnd.SelectedIndex; i1++)
         {
             itemlist.Add(objPriodItems[i1].m_strPeriodID);
         }
         DataTable dt = new DataTable();
         domain.m_lngGetReportmoth(itemlist, objPriodItems[this.m_cboSelPeriodBegion.SelectedIndex - 1].m_strPeriodID, out dt, this.exComboBox1.SelectItemValue);
         if (dt.Rows.Count > 0)
         {
             dw_1.Reset();
             int newRow;
             for (int i = 0; i < dt.Rows.Count; i++)
             {
                 newRow = dw_1.InsertRow();
                 dw_1.SetItemString(newRow, "rowname", dt.Rows[i]["rowname"].ToString());
                 if (dt.Rows[i]["westmedsalemoney"] == null || dt.Rows[i]["westmedsalemoney"].ToString() == "")
                 {
                     dt.Rows[i]["westmedsalemoney"] = 0;
                 }
                 dw_1.SetItemDecimal(newRow, "westmedsalemoney", decimal.Parse(dt.Rows[i]["westmedsalemoney"].ToString()));
                 if (dt.Rows[i]["WCsalemoney"] == null || dt.Rows[i]["WCsalemoney"].ToString() == "")
                 {
                     dt.Rows[i]["WCsalemoney"] = 0;
                 }
                 dw_1.SetItemDecimal(newRow, "wcsalemoney", decimal.Parse(dt.Rows[i]["WCsalemoney"].ToString()));
                 if (dt.Rows[i]["chsalemoney"] == null || dt.Rows[i]["chsalemoney"].ToString() == "")
                 {
                     dt.Rows[i]["chsalemoney"] = 0;
                 }
                 dw_1.SetItemDecimal(newRow, "chsalemoney", decimal.Parse(dt.Rows[i]["chsalemoney"].ToString()));
                 if (dt.Rows[i]["totailsalemoney"] == null || dt.Rows[i]["totailsalemoney"].ToString() == "")
                 {
                     dt.Rows[i]["totailsalemoney"] = 0;
                 }
                 dw_1.SetItemDecimal(newRow, "totailsalemoney", decimal.Parse(dt.Rows[i]["totailsalemoney"].ToString()));
             }
             dw_1.Modify("t_1.text = '" + this.exComboBox1.SelectItemText + "月结报表'");
             dw_1.Modify("t_7.text = '财务期:" + this.m_cboSelPeriodBegion.Text + "到" + this.m_cboSelPeriodEnd.Text + "'");
             dw_1.CalculateGroups();
             dw_1.Refresh();
         }
     }
 }