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


C# Whitfieldcore.GetWeeks方法代码示例

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


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

示例1: BindWeeks

 private void BindWeeks()
 {
     DataSet dsGrp = new DataSet();
         Whitfieldcore wUser = new Whitfieldcore();
         DataSet ds = wUser.GetWeeks();
         ddlWeek.DataSource = ds;
         //[week_number],[week_name]week_name
         ddlWeek.DataTextField = "week_name";
         ddlWeek.DataValueField = "week_name";
         ddlWeek.DataBind();
         ddlWeek.Items.Insert(0, common.AddItemToList("Select Week", "0"));
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:12,代码来源:Whitfield_projectInfo.aspx.cs

示例2: DisplayProductionSchedule

    private void DisplayProductionSchedule()
    {
        plSchedule.Controls.Clear();
        try
        {
            whitfield_prod_reports wSchedule = new whitfield_prod_reports();
            Whitfieldcore wWeek = new Whitfieldcore();

            //Fetch the General week Number for the outer loop
            //Fetch the Production schedule Dataset by passing the YEAR, MONTH and Week and bind the DataGrid. Continue for other Weeks.

            DataSet dsWeek = wWeek.GetWeeks();
            if (dsWeek.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow dRow in dsWeek.Tables[0].Rows)
                {
                    String _weekName = dRow["week_name"].ToString();
                    DataSet dsProdSchedule = wSchedule.GetProductionScheduleForDates(ddlMonth.SelectedItem.Value, ddlYear.SelectedItem.Value, _weekName);
                    Int32 resultCountProd = 0;
                    if (dsProdSchedule.Tables.Count > 0)
                        resultCountProd = dsProdSchedule.Tables[0].Rows.Count;

                    if (resultCountProd > 0)
                    {
                       // Label lblTxt = new Label();
                       // lblTxt.CssClass = "header1";
                       // lblTxt.Text = _weekName;
                        DataGrid dGrid = new DataGrid();
                        dGrid.ID = "grd" + ddlMonth.SelectedItem.Value + ddlYear.SelectedItem.Value + _weekName;
                        dGrid.HorizontalAlign = HorizontalAlign.Left;
                        dGrid.CssClass="data";
                        dGrid.HeaderStyle.Font.Bold=true;
                        dGrid.HeaderStyle.HorizontalAlign= HorizontalAlign.Center;
                        dGrid.HeaderStyle.BackColor = System.Drawing.Color.LightBlue;
                        dGrid.HeaderStyle.CssClass="subnav";
                        //dGrid.Width=Unit.Pixel(500);
                        //dGrid.AllowPaging=false;
                        //dGrid.AutoGenerateColumns=false;
                        //dGrid.SelectedItemStyle.BackColor=System.Drawing.Color.LightGray;
                        //dGrid.ShowFooter=true;
                        dGrid.Caption = _weekName;
                        dGrid.CaptionAlign = TableCaptionAlign.Left;
                        dGrid.ItemStyle.Wrap = true;
                        dGrid.DataSource = dsProdSchedule.Tables[0];
                        dGrid.DataBind();
                        //plSchedule.Controls.Add(lblTxt);
                        plSchedule.Controls.Add(dGrid);
                    }
                }
            }

        }
        catch (Exception exp)
        {
            Response.Write(exp.Message.ToString());
        }
    }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:57,代码来源:daily_prod_report.aspx.cs


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