Beispiel #1
0
        private void LoadTransactionType(string path)
        {
            try
            {
                DataTable dt = XMLBo.GetTransactionType(path);
                ddlTransactionType.DataSource     = dt;
                ddlTransactionType.DataTextField  = "TransactionName";
                ddlTransactionType.DataValueField = "TransactionCode";
                ddlTransactionType.DataBind();
                ddlTransactionType.Items.Insert(0, new ListItem("Select Transaction", "Select Transaction"));
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }

            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "EquityManualSingleTransaction.ascx:LoadTransactionType()");
                object[] objects = new object[1];
                objects[0]   = path;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }