示例#1
0
 public static transactionView GetForm(string formName)
 {
     string cacheKey = typeof(transactionView).FullName + (formName == null || formName.Trim() == "" ? "" : "-" + formName);
     transactionView form = (transactionView)common.Data.dataCache.Find(cacheKey);
     if (form != null && !form.IsDisposed) return form;
     form = new transactionView();
     common.Data.dataCache.Add(cacheKey, form);
     return form;
 }
示例#2
0
        public static transactionView GetForm(string formName)
        {
            string          cacheKey = typeof(transactionView).FullName + (formName == null || formName.Trim() == "" ? "" : "-" + formName);
            transactionView form     = (transactionView)common.Data.dataCache.Find(cacheKey);

            if (form != null && !form.IsDisposed)
            {
                return(form);
            }
            form = new transactionView();
            common.Data.dataCache.Add(cacheKey, form);
            return(form);
        }
示例#3
0
        protected void ViewTransaction()
        {
            if (transactionsSource.Current == null)
            {
                return;
            }
            databases.baseDS.transactionsRow row = (databases.baseDS.transactionsRow)((DataRowView)transactionsSource.Current).Row;
            transactionView form = GetViewForm();

            form.SetEditData(row);
            form.LockEdit(true);
            form.ShowDialog();
        }