Beispiel #1
0
        private void LoadData()
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;
                criteria    = new MAS303_Instrument_Criteria()
                {
                    NAME               = txtName.TextValue,
                    MODEL              = txtModel.TextValue,
                    SERIALNO           = txtSerialNo.TextValue,
                    SHOW_DELETE_RECORD = chkShowDeleteRecord.Checked,
                    SHOW_EXPIRED       = chkExpireDate.Checked,
                };
                insList             = vmMas.GetInstrument(criteria);
                gvResult.DataSource = insList;

                gvResult.SetRowDeletedStyle((int)eCol.DEL_ID);
            }
            catch (Exception ex)
            {
                rMessageBox.ShowException(this, ex);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
Beispiel #2
0
 public SortableBindingList <sp_MAS303_GetInstrument_Result> GetInstrument(MAS303_Instrument_Criteria criteria)
 {
     return(service.GetInstrument(criteria));
 }