• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Diagnostics.StackFrame类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Diagnostics.StackFrame的典型用法代码示例。如果您正苦于以下问题:C# System.Diagnostics.StackFrame类的具体用法?C# System.Diagnostics.StackFrame怎么用?C# System.Diagnostics.StackFrame使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



System.Diagnostics.StackFrame类属于命名空间,在下文中一共展示了System.Diagnostics.StackFrame类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: WatchdogTimer

 public WatchdogTimer(int Seconds)
 {
     TimerFrame = new System.Diagnostics.StackFrame(1);
     CountownTimer = new Timer(Seconds * 1000.0);
     CountownTimer.Elapsed += Elapsed;
     CountownTimer.Start();
 }
开发者ID:Tigrouzen,项目名称:UnrealEngine-4,代码行数:7,代码来源:WatchdogTimer.cs


示例2: tbl_genLog_Logger

        public void tbl_genLog_Logger(int ID_hrStaff,int ID_reqpUserID, int ID_LogType, string RequestText = "",string SessionID = "", string LogText = "")
        {
            ServiceConfig srvcont = new ServiceConfig(_ServiceConfigParameters);
            try
            {

                    System.Diagnostics.StackFrame sf = new System.Diagnostics.StackFrame(1);
                    var method = sf.GetMethod();
                    string methodName = method.Name;
                    DateTime dNow = DateTime.Now;

                    Entities.tbl_genLog userlog = new Entities.tbl_genLog();
                    //LogType 3 = UserAction
                    userlog.ID_LogType = ID_LogType;
                    userlog.LogID = methodName;
                    userlog.ID_Staff = ID_reqpUserID;
                    userlog.SessionID = SessionID;
                    userlog.RequestText = RequestText;
                    userlog.LogText = LogText;
                    userlog.TS_CREATE = dNow;
                    userlog.VALID_FROM = dNow;
                    userlog.VALID_TO = dNow;
                    userlog.CREATED_BY = ID_hrStaff;

                    srvcont.DataContext.tbl_genLog.AddObject(userlog);

                    srvcont.DataContext.SaveChanges();
            }
            catch (Exception)
            {
                //no action

            }
        }
开发者ID:PSDevGithub,项目名称:PSIntranetService,代码行数:34,代码来源:SetQueries.cs


示例3: SetProgress

 public void SetProgress(int percent)
 {
     System.Reflection.MethodBase method = new System.Diagnostics.StackFrame(1).GetMethod();
     MethodLabel.Text = method.DeclaringType.Name + "::" + method.Name + "()";
     progressBar.Value = percent;
     Application.DoEvents();
 }
开发者ID:svn2github,项目名称:autowikibrowser,代码行数:7,代码来源:Splash.cs


示例4: CreateSegment

        public static bool CreateSegment(NetManager _this, out ushort segmentID, ref Randomizer randomizer, NetInfo info, ushort startNode, ushort endNode, Vector3 startDirection, Vector3 endDirection, uint buildIndex, uint modifiedIndex, bool invert)
        {
            var ai = info.m_netAI as RoadAI;
            if (ai != null && ai.m_enableZoning)
            {
                var caller = new System.Diagnostics.StackFrame(1).GetMethod().Name;

                switch (caller)
                {
                    case "MoveMiddleNode": // segment that was modified because user added network, apply style of previous segment
                        newBlockColumnCount = MoveMiddleNode_releasedColumnCount >= 0 ?
                            MoveMiddleNode_releasedColumnCount : InputThreadingExtension.userSelectedColumnCount;
                        break;

                    case "SplitSegment": // segment that was split by new node, apply style of previous segment
                        newBlockColumnCount = SplitSegment_releasedColumnCount >= 0 ?
                            SplitSegment_releasedColumnCount : InputThreadingExtension.userSelectedColumnCount;
                        break;

                    default: // unknown caller (e.g. new road placed), set to depth selected by user
                        newBlockColumnCount = InputThreadingExtension.userSelectedColumnCount;
                        SplitSegment_releasedColumnCount = -1;
                        MoveMiddleNode_releasedColumnCount = -1;
                        break;
                }
            }

            // Call original method
            CreateSegmentRedirector.Revert();
            var success = _this.CreateSegment(out segmentID, ref randomizer, info, startNode, endNode, startDirection, endDirection, buildIndex, modifiedIndex, invert);
            CreateSegmentRedirector.Apply();

            return success;
        }
开发者ID:boformer,项目名称:GrowableOverhaul,代码行数:34,代码来源:NetManagerDetour.cs


示例5: GetBillingPartyInformation

        /// <summary>
        /// Description  : Get the Client information from CSS1
        /// Created By   : Sudheer  
        /// Created Date : 14th Oct 2014
        /// Modified By  : 
        /// Modified Date: 
        /// </summary>   
        public static _ChoosenBillingPartyInfo GetBillingPartyInformation(string ClientName, string WOID)
        {
            var GetClientInfo = new _ChoosenBillingPartyInfo();

            System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
            System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
            log.Debug("Start: " + methodBase.Name);
            try
            {
                SqlParameter[] sqlParams = new SqlParameter[2];
                sqlParams[0] = new SqlParameter("@WOID", WOID);
                sqlParams[1] = new SqlParameter("@ClientName", ClientName);
                var reader = SqlHelper.ExecuteReader(ConnectionUtility.GetConnectionString(), CommandType.StoredProcedure, "GetAllBillingPartyDetails", sqlParams);
                var safe = new SafeDataReader(reader);

                while (reader.Read())
                {
                    var ClientInfo = new _ChoosenClient();
                    ClientInfo.FetchBillingPartyInfo(ClientInfo, safe);
                    GetClientInfo._ChoosenBillingPartyList.Add(ClientInfo);
                }

                return GetClientInfo;
            }
            catch (Exception ex)
            {
                log.Error("Error: " + ex);
                return GetClientInfo;
            }
            finally
            {
                log.Debug("End: " + methodBase.Name);
            }
        }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:41,代码来源:_ChoosenClient.cs


示例6: GetFilteredFrames

        /// <summary>
        /// Filters and copies the specified array of .NET stack frames
        /// </summary>
        /// <param name="stackFrames"></param>
        /// <returns></returns>
        private StackFrame[] GetFilteredFrames(SysStackFrame[] stackFrames) {
            StackFrame[] result = null;

            int resultIndex = 0;
            for (int i = 0; i < stackFrames.Length; i++) {
                SysStackFrame current = stackFrames[i];

                // postpone allocating the array until we know how big it should be
                if (result == null) {
                    // filter the top irrelevant frames from the stack
                    if (!this._stackTraceFilter.IsRelevant(current)) {
                        continue;
                    }

                    result = new StackFrame[stackFrames.Length + MethodsToKeep - i];

                    // copy last frames to stack
                    for (int j = i-MethodsToKeep; j < i; j++) {
                        result[resultIndex] = StackFrame.Create(stackFrames[j]);
                        resultIndex++;
                    }

                }

                result[resultIndex] = StackFrame.Create(stackFrames[i]);
                resultIndex ++;
            }

            return result;
        }
开发者ID:julianpaulozzi,项目名称:EntityProfiler,代码行数:35,代码来源:StackTraceFactory.cs


示例7: FillByUserName

        internal static void FillByUserName(User user)
        {
            // #1- Logger variables
            System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
            string className = System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name;
            string methodName = stackFrame.GetMethod().Name;

            string query = "SELECT id, groupName,password,passwordDate,deleted,disabled,dateCreated,dateDeleted,dateDisabled FROM incuser WHERE userName = @userName";
            Hashtable param = new Hashtable();
            param.Add("@userName", user.userName);

            // #2- Logger pre query
            Logger.LogDebug("(%s) (%s) -- Ejecuta query para obtener todos los folios. QUERY: %s", className, methodName, query);

            using (DataTable dt = ExecuteDataTableQuery(query, param))
            {
                if (dt != null && dt.Rows.Count > 0)
                {
                    // #3- Logger post query
                    Logger.LogDebug("Row count: %s", dt.Rows.Count.ToString());

                    DataRow row = dt.Rows[0];
                    user.userName = user.userName;
                    user.id = (row["id"] != DBNull.Value) ? row["id"].ToString() : string.Empty;
                    user.groupName = (row["groupName"] != DBNull.Value) ? row["groupName"].ToString() : string.Empty;
                    user.password = (row["password"] != DBNull.Value) ? row["password"].ToString() : string.Empty;
                    user.passwordDate = (row["passwordDate"] != DBNull.Value) ? DateTime.Parse(row["passwordDate"].ToString()) : DateTime.Now;
                    user.deleted = (row["deleted"] != DBNull.Value) ? int.Parse(row["deleted"].ToString()) : 0;
                    user.disabled = (row["disabled"] != DBNull.Value) ? int.Parse(row["disabled"].ToString()) : 0;
                    user.dateCreated = (row["dateCreated"] != DBNull.Value) ? DateTime.Parse(row["dateCreated"].ToString()) : DateTime.Now;
                    user.dateDeleted = (row["dateDeleted"] != DBNull.Value) ? DateTime.Parse(row["dateDeleted"].ToString()) : DateTime.Now;
                    user.dateDisabled = (row["dateDisabled"] != DBNull.Value) ? DateTime.Parse(row["dateDisabled"].ToString()) : DateTime.Now;
                }
            }
        }
开发者ID:gborderolle,项目名称:MediaPlayer_repo,代码行数:35,代码来源:UserDAO.cs


示例8: LogError

 /// <summary>
 /// Logs an error using log4net
 /// </summary>
 /// <param name="ex">The error to log</param>
 internal static void LogError(Exception ex)
 {
     MethodBase callingMethod = new System.Diagnostics.StackFrame(1, false).GetMethod();
     ILog logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
     MDC.Set("requestinfo", String.Empty);
     logger.Error(GetErrorMessageTitle(callingMethod.Name), ex);
 }
开发者ID:ahtisam,项目名称:TechDevelopment,代码行数:11,代码来源:LogUtility.cs


示例9: Css1InfoDetails

        public JsonResult Css1InfoDetails(string WOID, string WOType)
        {
            System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
            System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
            log.Debug("Start: " + methodBase.Name);
            try
            {
                int checkSession = UserLogin.AuthenticateRequest();
                if (checkSession == 0)
                {
                    return Json(checkSession);
                }
                else
                {
                    DataSet result = Masters.Models.Masters.Css1InfoDetail.GetCss1InfoDetails(WOID, WOType);
                    string data = JsonConvert.SerializeObject(result, Formatting.Indented);
                    return Json(data);

                }
            }
            catch (Exception ex)
            {
                log.Error("Error: " + ex);
                return Json("");
            }
            finally
            {
                log.Debug("End: " + methodBase.Name);
            }
        }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:30,代码来源:Css1InfoController.cs


示例10: btnSave_Click

        /// <summary>
        /// 保存当前组用户
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                UpdateTempUser();
                string users = "-1,";

                if (ViewState["hdnRowValue"].ToString().Length > 0)
                    users += ViewState["hdnRowValue"].ToString().Replace("'", "");

                users += "-1";

                BLL.BLLBase bll = new BLL.BLLBase();
                bll.ExecNonQuery("Security.UpdateUserGroup", new DataParameter[] { new DataParameter("@GroupID", GroupID), new DataParameter("{0}", users) });

                ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, this.UpdatePanel1.GetType(), "Resize", "Close('1');", true);

            }
            catch(Exception ex)
            {
                System.Diagnostics.StackFrame frame = new System.Diagnostics.StackFrame(0);
                Session["ModuleName"] = this.Page.Title;
                Session["FunctionName"] = frame.GetMethod().Name;
                Session["ExceptionalType"] = ex.GetType().FullName;
                Session["ExceptionalDescription"] = ex.Message;
                Response.Redirect("../../../Common/MistakesPage.aspx");

            }
        }
开发者ID:qq5013,项目名称:XJ_WMS,代码行数:34,代码来源:GroupUserManage.aspx.cs


示例11: AuthenticateRequest

        /// <summary>
        /// Created By    : hussain
        /// Created Date  : 15 May 2014
        /// Modified By   : Shiva 
        /// Modified Date : 16 Sep 2014
        /// AuthenticateRequest 
        /// </summary>
        /// <param name="Token">SessionToken</param>
        /// <returns>Active Session:0 InActive Session: UserID</returns>
        public static int AuthenticateRequest()
        {
            System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
            System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
            log.Debug("Start: " + methodBase.Name);
            int userId = 0; ;
            try
            {

                string SessionToken = Convert.ToString(HttpContext.Current.Session["CSS2SessionID"]);
                if (!string.IsNullOrEmpty(SessionToken) ? true : false)
                {
                    // User session is Active Session it returns users id else returns 0
                    userId = UserLogin.CheckUserSessionToken(SessionToken);

                }
            }
            catch (Exception ex)
            {
                log.Error("Error: " + ex);
            }

            log.Debug("End: " + methodBase.Name);
            return userId;
        }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:34,代码来源:UserLogin.cs


示例12: GetWOAddressDetails

        /// <summary>
        /// Description  : Get WOAddress Details from database.
        /// Created By   : Pavan
        /// Created Date : 12 August 2014
        /// Modified By  :
        /// Modified Date:
        /// </summary>
        /// <returns></returns>
        public static List<WOAddress> GetWOAddressDetails(int PersonID, string PersonSource)
        {
            var data = new List<WOAddress>();

            System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
            System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
            log.Debug("Start: " + methodBase.Name);
            try
            {
                SqlParameter[] sqlParams = new SqlParameter[2];
                sqlParams[0] = new SqlParameter("@PersonID", PersonID);
                sqlParams[1] = new SqlParameter("@PersonSource", PersonSource);
                var reader = SqlHelper.ExecuteReader(ConnectionUtility.GetConnectionString(), CommandType.StoredProcedure, "[SpGetWOAddressDetails]", sqlParams);
                var safe = new SafeDataReader(reader);
                while (reader.Read())
                {
                    var woaddress = new WOAddress();
                    woaddress.FetchwoaddressDetails(woaddress, safe);
                    data.Add(woaddress);
                }
                return data;
            }
            catch (Exception ex)
            {
                log.Error("Error: " + ex);
                return data;
            }
            finally
            {
                log.Debug("End: " + methodBase.Name);
            }
        }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:40,代码来源:WOAddress.cs


示例13: GetAuditorDetailsByWOID

            /// <summary>
            /// Description  : Get Auditors Details from database.
            /// Created By   : Pavan
            /// Created Date : 23 August 2014
            /// Modified By  :
            /// Modified Date:
            /// </summary>
            /// <returns></returns>
            public static List<Auditors> GetAuditorDetailsByWOID(int WOID)
            {
                var data = new List<Auditors>();

                System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
                System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
                log.Debug("Start: " + methodBase.Name);
                try
                {
                    SqlParameter[] sqlParams = new SqlParameter[1];
                    sqlParams[0] = new SqlParameter("@WOID", WOID);
                    var reader = SqlHelper.ExecuteReader(ConnectionUtility.GetConnectionString(), CommandType.StoredProcedure, "[SpGetAuditorDetailsByWOID]", sqlParams);
                    var safe = new SafeDataReader(reader);
                    while (reader.Read())
                    {
                        var Auditors = new Auditors();
                        Auditors.FetchAuditors(Auditors, safe);
                        data.Add(Auditors);
                    }
                    return data;
                }
                catch (Exception ex)
                {
                    log.Error("Error: " + ex);
                    return data;
                }
                finally
                {
                    log.Debug("End: " + methodBase.Name);
                }
            }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:39,代码来源:Masters.cs


示例14: GetCSS1GroupDetails

        /// <summary>
        /// Description  : Get the Group information from CSS1
        /// Created By   : Shiva
        /// Created Date : 10 July 2014
        /// Modified By  :
        /// Modified Date:
        /// </summary>
        /// <returns></returns>
        public static GroupInfo GetCSS1GroupDetails()
        {
            var data = new GroupInfo();

            System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
            System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
            log.Debug("Start: " + methodBase.Name);
            try
            {
                var lstGroupInfo = new List<GroupInfo>();
                var reader = SqlHelper.ExecuteReader(ConnectionUtility.GetConnectionString(), CommandType.StoredProcedure, "SpGetCSS1GroupDetails");
                var safe = new SafeDataReader(reader);
                while (reader.Read())
                {
                    var getGroupInfo = new GroupInfo();
                    getGroupInfo.FetchGroupInfo(getGroupInfo, safe);
                    lstGroupInfo.Add(getGroupInfo);
                }
                data.GroupInfoList = lstGroupInfo;
                return data;
            }
            catch (Exception ex)
            {
                log.Error("Error: " + ex);
                return data;
            }
            finally
            {
                log.Debug("End: " + methodBase.Name);
            }
        }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:39,代码来源:WorkOrders.cs


示例15: DeleteNote

 public JsonResult DeleteNote(int ID)
 {
     System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
     System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
     log.Debug("Start: " + methodBase.Name);
     try
     {
         int checkSession = UserLogin.AuthenticateRequest();
         if (checkSession == 0)
         {
             return Json(checkSession);
         }
         else
         {
             var data = new Note
             {
                 ID = ID,
                 CreatedBy = checkSession
             };
             int output = data.DeleteNote();
             return Json(output);
         }
     }
     catch (Exception ex)
     {
         log.Error("Error: " + ex);
         return Json("");
     }
     finally
     {
         log.Debug("End: " + methodBase.Name);
     }
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:33,代码来源:NoteController.cs


示例16: TestContext

 public void TestContext ()
 {
    var queue = new Loggers.Queue();
    var log = new Log(this);
    using (Log.RegisterInstance(
          new Instance()
          {
             Properties = new[]
             {
                "StackFrame.File",
                "StackFrame.Line",
                "StackFrame.Type",
                "StackFrame.Method"
             },
             Logger = queue,
             Buffer = 0,
             Synchronous = true
          }
       )
    )
    {
       var frame = new System.Diagnostics.StackFrame(0, true);
       log.Info("test");
       var evt = queue.Dequeue().Single();
       Assert.AreEqual(evt["StackFrame.File"], frame.GetFileName());
       Assert.AreEqual(evt["StackFrame.Line"], frame.GetFileLineNumber() + 1);
       Assert.AreEqual(evt["StackFrame.Type"], frame.GetMethod().DeclaringType.FullName);
       Assert.AreEqual(evt["StackFrame.Method"], frame.GetMethod().Name);
    }
 }
开发者ID:modulexcite,项目名称:NLogEx,代码行数:30,代码来源:TestStackFrame.cs


示例17: AdhocActionOnDisbursementItems

 public JsonResult AdhocActionOnDisbursementItems(string DisbursementIds, int Adhoc, string ForState)
 {
     System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
     System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
     log.Debug("Start: " + methodBase.Name);
     try
     {
         int checkSession = UserLogin.AuthenticateRequest();
         if (checkSession == 0)
         {
             return Json(checkSession);
         }
         else
         {
             DisbursementItem objDisbursementItem = new DisbursementItem();
             int result = objDisbursementItem.AdhocActionOnDisbursementItems(DisbursementIds, Adhoc, ForState, checkSession);
             return Json(result);
         }
     }
     catch (Exception ex)
     {
         log.Error("Error: " + ex);
         return Json("");
     }
     finally
     {
         log.Debug("End: " + methodBase.Name);
     }
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:29,代码来源:WODIController.cs


示例18: FileInfo

        public FileInfo(String fileName)
        {
            if (fileName == null)
                throw new ArgumentNullException("fileName");
            Contract.EndContractBlock();

#if FEATURE_LEGACYNETCF
            if(CompatibilitySwitches.IsAppEarlierThanWindowsPhone8)
            {
                System.Reflection.Assembly callingAssembly = System.Reflection.Assembly.GetCallingAssembly();
                if(callingAssembly != null && !callingAssembly.IsProfileAssembly)
                {
                    string caller = new System.Diagnostics.StackFrame(1).GetMethod().FullName;
                    string callee = System.Reflection.MethodBase.GetCurrentMethod().FullName;
                    throw new MethodAccessException(String.Format(
                        CultureInfo.CurrentCulture,
                        Environment.GetResourceString("Arg_MethodAccessException_WithCaller"),
                        caller,
                        callee));
                }
            }
#endif // FEATURE_LEGACYNETCF

            Init(fileName, true);
        }
开发者ID:ItsVeryWindy,项目名称:mono,代码行数:25,代码来源:fileinfo.cs


示例19: BindThirdPartyBillingDetails

 public JsonResult BindThirdPartyBillingDetails(string CompanyName, string OrderBy, int StartPage, int RowsPerPage)
 {
     System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
     System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
     log.Debug("Start: " + methodBase.Name);
     try
     {
         int CreatedBy = UserLogin.AuthenticateRequest();
         if (CreatedBy == 0)
         {
             return Json(CreatedBy);
         }
         else
         {
             var ThirdPartyBillingData = BillingThirdParty.BindThirdPartyBillingDetails(HttpUtility.UrlDecode(CompanyName), OrderBy, StartPage + 1, StartPage + RowsPerPage);
             return Json(ThirdPartyBillingData);
         }
     }
     catch (Exception ex)
     {
         log.Error("Error: " + ex);
         return Json("");
     }
     finally
     {
         log.Debug("End: " + methodBase.Name);
     }
 }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:28,代码来源:BillingController.cs


示例20: CABUpdateReceiveStatus

        /// <summary>
        /// Description  : To Update Receive Status For Invoice From ACCPAC
        /// Created By   : Pavan
        /// Created Date : 29 Oct 2014
        /// Modified By  :
        /// Modified Date:
        /// </summary>
        public static int CABUpdateReceiveStatus(DataTable dtINVOICE_FROM_CSS2, DataTable dtINVOICE_DETAILS_FROM_CSS2)
        {
            int UpdateStatus = -2;

            System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame();
            System.Reflection.MethodBase methodBase = stackFrame.GetMethod();
            log.Debug("Start: " + methodBase.Name);
            try
            {
                SqlParameter[] sqlParams = new SqlParameter[2];
                sqlParams[0] = new SqlParameter("@dtINVOICE_FROM_ACCPAC", dtINVOICE_FROM_CSS2);
                sqlParams[0].SqlDbType = SqlDbType.Structured;
                sqlParams[1] = new SqlParameter("@dtINVOICE_DETAILS_FROM_ACCPAC", dtINVOICE_DETAILS_FROM_CSS2);
                sqlParams[1].SqlDbType = SqlDbType.Structured;
                DataSet ds = SqlHelper.ExecuteDataset(ConnectionUtility.GetConnectionString(), CommandType.StoredProcedure, "SpCABUpdateReceiveStatus", sqlParams);
                return UpdateStatus;
            }
            catch (Exception ex)
            {
                log.Error("Error: " + ex);
                return UpdateStatus;
            }
            finally
            {
                log.Debug("End: " + methodBase.Name);
            }
        }
开发者ID:reddyjannavarapu,项目名称:css3,代码行数:34,代码来源:Billing.cs



注:本文中的System.Diagnostics.StackFrame类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Diagnostics.StackTrace类代码示例发布时间:2022-05-24
下一篇:
C# Diagnostics.ProcessStartInfo类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap