当前位置: 首页>>代码示例>>C#>>正文


C# Whitfieldcore.GetTotalFabricationHours方法代码示例

本文整理汇总了C#中Whitfieldcore.GetTotalFabricationHours方法的典型用法代码示例。如果您正苦于以下问题:C# Whitfieldcore.GetTotalFabricationHours方法的具体用法?C# Whitfieldcore.GetTotalFabricationHours怎么用?C# Whitfieldcore.GetTotalFabricationHours使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Whitfieldcore的用法示例。


在下文中一共展示了Whitfieldcore.GetTotalFabricationHours方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load


//.........这里部分代码省略.........
                if (n.HasKeys())
                {
                    string k = n.GetKey(0);
                    string v = n.Get(0);

                    string k1 = n.GetKey(1);
                    string v1 = n.Get(1);

                    if (k == "EstNum")
                    {
                        EstNum = Convert.ToInt32(v);  // Here goes the code for the creation of new EstNum

                        twc_project_number = Convert.ToInt32(v1);
                        ViewState["EstNum"] = EstNum;
                        ViewState["twc_project_number"] = twc_project_number;
                        //txtReportDate.Text = _wr.GetCurrentDate().Trim();
                        txtwhitPrjNumber.Text = ViewState["twc_project_number"].ToString();
                        txtrealPrjNumber.Text = _wc.GetReal_proj_Number(Convert.ToInt32(ViewState["twc_project_number"].ToString())).ToString();
                        this.FetchAndBind(EstNum, twc_project_number);
                    }
                }
                else
                {
                    EstNum = Convert.ToInt32(ViewState["EstNum"].ToString());
                    twc_project_number = Convert.ToInt32(ViewState["twc_project_number"].ToString());
                    //txtReportDate.Text = _wr.GetCurrentDate().Trim();
                    txtwhitPrjNumber.Text = ViewState["twc_project_number"].ToString();
                    txtrealPrjNumber.Text = _wc.GetReal_proj_Number(Convert.ToInt32(ViewState["twc_project_number"].ToString())).ToString();
                    this.FetchAndBind(EstNum, twc_project_number);
                }
            }

            Response.Cookies["EstNum"].Value = EstNum.ToString();
            Response.Cookies["twc_project_number"].Value = twc_project_number.ToString();
            hdnEstNum.Value = EstNum.ToString();
            hdntwcProjNumber.Value = twc_project_number.ToString();

            //Bind the clients and competition and Conversation Log
            try
            {
                grdclients.PageSize = _DEFAULTPAGESIZE;
                DataSet dsGridResults;
                dsGridResults = this.Project_clients();
                this.PopulateDataGrid(dsGridResults, grdclients);
            }

            catch (Exception exp)
            {
                Response.Write(exp.Message.ToString());
            }

            //GetDocumentsforProject
            try
            {
                grddocs.PageSize = _DEFAULTPAGESIZE;
                DataSet dsGridResults;
                dsGridResults = this.GetDocs();
                this.PopulateDataGrid(dsGridResults, grddocs);
            }
            catch (Exception exp)
            {
                Response.Write(exp.Message.ToString());
            }

           //Logic Here for the Project Daily Field Report

           // if (_wr.IsReportExists(Convert.ToInt32(ViewState["twc_project_number"].ToString()), txtReportDate.Text))

            if (_wr.IsReportExists(twc_project_number, txtReportDate.Text))
                {
                    DataSet _dsDailyRpt = _wr.GetReportForProject(Convert.ToInt32(ViewState["twc_project_number"].ToString()), txtReportDate.Text.Trim());
                    //txtReportDate.Text = _wr.GetCurrentDate();
                    DataTable dtUsr = _dsDailyRpt.Tables[0];
                    String _chkStatus = "";
                    foreach (DataRow dRow in dtUsr.Rows)
                    {
                        txtRptNotes.Text = dRow["Daily_notes"] == DBNull.Value ? "" : dRow["Daily_notes"].ToString();
                        txtRptIssues.Text = dRow["Daily_comments"] == DBNull.Value ? "" : dRow["Daily_comments"].ToString();
                        txtRptChangeOrderNotes.Text = dRow["Change_order_notes"] == DBNull.Value ? "" : dRow["Change_order_notes"].ToString();
                        _chkStatus = dRow["is_locked"] == DBNull.Value ? "" : dRow["is_locked"].ToString();
                        if (_chkStatus.Trim() == "Y")
                        {
                            chkActive.SelectedIndex = chkActive.Items.IndexOf(chkActive.Items.FindByValue(_chkStatus));
                        }
                    }
                }
            //Logic for Project Daily Field Report Ends.
             Whitfieldcore _wc1 = new Whitfieldcore();
             lblTotAnnFabHours.Text = _wc1.GetTotalFabricationHours(twc_project_number.ToString());
             lblTotScheduledHours.Text = _wc1.GetTotalscheduledHours(twc_project_number);
            //GetTotalFabricationHours
        }
        else
        {
            //pHprojClient.Visible = true;
            //pHprojcompe.Visible = true;
        }

        tabgeneral.ActiveTabIndex = ActiveIndexNumber;
    }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:101,代码来源:Whitfield_projectInfo.aspx.cs


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