Пример #1
0
        private void frmQuery_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmAskQuery frmQuery = sender as frmAskQuery;

            if (frmQuery.m_dtAskMainInfo != null && frmQuery.m_dtOutStorageMainInfo != null)
            {
                this.m_dgvOutStorageMain.Tag        = frmQuery.m_dtOutStorageMainInfo;
                this.m_dgvOutStorageMain.DataSource = frmQuery.m_dtOutStorageMainInfo;
                //for (int iRow = 0; iRow < this.m_dgvOutStorageMain.Rows.Count; iRow++)
                //{
                //    if (this.m_dgvOutStorageMain.Rows[iRow].Cells["m_txtStatus_int"].Value.ToString() == "4")
                //    {
                //        this.m_dgvOutStorageMain.Rows[iRow].DefaultCellStyle.ForeColor = Color.Magenta;
                //    }
                //}
                this.m_dgvOutStorageMain.Refresh();
                if (frmQuery.m_dtOutStorageMainInfo.Rows.Count == 0)
                {
                    this.m_dgvOutStorageDetail.DataSource = null;
                }
                this.m_dgvAskMedMain.Tag        = frmQuery.m_dtAskMainInfo;
                this.m_dgvAskMedMain.DataSource = frmQuery.m_dtAskMainInfo;
                this.m_dgvAskMedMain.Refresh();
                if (frmQuery.m_dtAskMainInfo.Rows.Count == 0)
                {
                    this.m_dgvAskMedDetail.DataSource = null;
                }
                ((clsCtl_AskForMedManage)this.objController).ShowMainAskMoney();
                ((clsCtl_AskForMedManage)this.objController).ShowMainOutMoney();
            }
        }
Пример #2
0
        private void m_btnFind_Click(object sender, EventArgs e)
        {
            frmAskQuery frmQuery = new frmAskQuery();

            if (clsPub.m_dtMedicineInfo == null)
            {
                if (m_dgvAskMedMain.SelectedRows.Count > 0)
                {
                    clsPub.m_mthGetMedBaseInfo(this.m_dgvAskMedMain.SelectedRows[0].Cells["m_txtExportDept"].Value.ToString());
                }
                else
                {
                    clsPub.m_mthGetMedBaseInfo(strStorageid);
                }
            }
            frmQuery.m_dtbMedicineInfo = clsPub.m_dtMedicineInfo;
            frmQuery.m_dtAskDept       = this.m_dtApplyDept;
            frmQuery.frmMain           = this;
            frmQuery.m_dtExportDept    = ((clsCtl_AskForMedManage)this.objController).m_dtExportDept;
            frmQuery.FormClosing      += new FormClosingEventHandler(frmQuery_FormClosing);
            frmQuery.ShowDialog();
        }
Пример #3
0
 /// <summary>
 /// 设置窗体对象
 /// </summary>
 /// <param name="frmMDI_Child_Base_in"></param>
 public override void Set_GUI_Apperance(com.digitalwave.GUI_Base.frmMDI_Child_Base frmMDI_Child_Base_in)
 {
     base.Set_GUI_Apperance(frmMDI_Child_Base_in);
     m_objViewer = (frmAskQuery)frmMDI_Child_Base_in;
 }