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

C# Whitfieldcore类代码示例

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

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



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

示例1: DisplayListBoxValues

    public void DisplayListBoxValues()
    {
        try
        {
            try
            {
                Whitfieldcore wCore = new Whitfieldcore();
                DataSet dsRight = new DataSet();
                DataSet dsLeft = new DataSet();

                dsLeft = wCore.GetLeftDistributionList(Convert.ToInt32(ViewState["EstNum"].ToString()), Convert.ToInt32(ViewState["twcProjNumber"].ToString()));
                BindUsers(leftlist, dsLeft);
                dsRight = wCore.GetRightDistributionList(Convert.ToInt32(ViewState["twcProjNumber"].ToString()));
                BindUsers(rightlist, dsRight);
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:25,代码来源:maintain_dlist.aspx.cs


示例2: btnnew_Click

    protected void btnnew_Click(object sender, EventArgs e)
    {
        Whitfieldcore wc = new Whitfieldcore();
        if (Page.IsValid)
        {
            Boolean IsInsertSuccess = false;
            IsInsertSuccess = wc.ManageContacts(Convert.ToInt32(ViewState["ContactID"].ToString()),
                Convert.ToInt32(ViewState["ClientNum"].ToString()),
                txtcontactfname.Text.Trim(),
                txtcontactlname.Text.Trim(),
                ddltitle.SelectedItem.Value,
                txttele.Text.Trim(),
                txtextn.Text.Trim(),
                txtEmail.Text.Trim(),
                txtNotes.Text.Trim(),
                txtAddress.Text.Trim(),
                ddlCity.SelectedItem.Value,
                ddlState.SelectedItem.Value,
                txtzip.Text.Trim()
                );
            if (IsInsertSuccess)
            {
                //Response.Redirect("addclient.aspx?IsNew=N&hClientID=" + ViewState["ClientNum"].ToString());

                //Response.Write("<script language='javascript'>parent.agreewin.hide();</script>");

                lblMsg.Text = "Client is Successfully saved";
            }
        }
    }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:30,代码来源:maintaincontact.aspx.cs


示例3: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     Whitfieldcore _wc = new Whitfieldcore();
     if (!Page.IsPostBack)
     {
         // 1 Get collection
         NameValueCollection n = Request.QueryString;
         // 2 See if any query string exists
         if (n.HasKeys())
         {
             // 3 Get first key and value
             string k = n.GetKey(0);
             string v = n.Get(0);
             string v1 = n.Get(1);
             // 4
             // Test different keys
             Clientid = Convert.ToInt32(v);
             EstNum = Convert.ToInt32(v1);
             hidEstNum.Value = EstNum.ToString();
         }
         ViewState["EstNum"] = EstNum.ToString();
         ViewState["Clientid"] = Clientid.ToString();
         BindContacts(Clientid);
     }
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:25,代码来源:AddContacts.aspx.cs


示例4: btnnew_Click

 protected void btnnew_Click(object sender, EventArgs e)
 {
     Whitfieldcore wUser = new Whitfieldcore();
         wUser.ManageWorkOrders(Convert.ToInt32(ViewState["EstNum"].ToString()), txtdesc.Text.Trim(), Convert.ToInt32(txtMaterialCost.Text.Trim()), Convert.ToInt32(txtFabHours.Text.Trim()), Convert.ToInt32(txtFinishHours.Text.Trim()), Convert.ToInt32(txtInstallHours.Text.Trim()), Convert.ToInt32(txtEngHours.Text.Trim()), Convert.ToInt32(txtMiscHours.Text.Trim()), txtNotes.Text.Trim(), chkActive.SelectedItem.Value.Trim(), txtreftext.Text.Trim());
         //Response.Write("<script language='javascript'>parent.agreewin.hide();</script>");
         Response.Write("<script language='javascript'>parent.location.replace('whitfield_estimation.aspx?EstNum=" + hidEstNum.Value + "');</script>");
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:7,代码来源:project_workorder.aspx.cs


示例5: FetchAndBind

    public void FetchAndBind(Int32 _ArchID)
    {
        //[Architect] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
        //[Address] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
        //[City] [int] NULL,
        //[State] [int] NULL,
        //[Zip] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
        //[Phone] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
        //[Fax] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
        //[Web] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
        //[Notes] [varchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL

        Whitfieldcore _wc = new Whitfieldcore();
        IDataReader iReader = _wc.GetArchitectInfo(_ArchID);
        // ' Loop through the DataReader and write out each entry
        while (iReader.Read())
        {
            txtclientname.Text = iReader["Architect"] == DBNull.Value ? "" : iReader["Architect"].ToString();
            txtstreet.Text = iReader["Address"] == DBNull.Value ? "" : iReader["Address"].ToString();
            String City = iReader["City"] == DBNull.Value ? "" : iReader["City"].ToString();
            ddlCity.SelectedIndex = ddlCity.Items.IndexOf(ddlCity.Items.FindByValue(City.ToString()));
            String Statecd = iReader["State"] == DBNull.Value ? "" : iReader["State"].ToString();
            ddlState.SelectedIndex = ddlState.Items.IndexOf(ddlState.Items.FindByValue(Statecd.ToString()));
            txtZipcode.Text = iReader["Zip"] == DBNull.Value ? "" : iReader["Zip"].ToString();
            txtPhNumber.Text = iReader["Phone"] == DBNull.Value ? "" : iReader["Phone"].ToString();
            txtFaxNumber.Text = iReader["Fax"] == DBNull.Value ? "" : iReader["Fax"].ToString();
            txtWeb.Text = iReader["Web"] == DBNull.Value ? "" : iReader["Web"].ToString();
            txtNotes.Text = iReader["Notes"] == DBNull.Value ? "" : iReader["Notes"].ToString();
        }
    }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:30,代码来源:archmain.aspx.cs


示例6: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     Whitfieldcore _wc = new Whitfieldcore();
     if (!Page.IsPostBack)
     {
         BindMaterials();
     }
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:8,代码来源:add_new_material.aspx.cs


示例7: PageResultGridNotes

 public void PageResultGridNotes(object sender, DataGridPageChangedEventArgs e)
 {
     Whitfieldcore wc = new Whitfieldcore();
     DataSet dsGridResults;
     grdSchedule.CurrentPageIndex = e.NewPageIndex;
     dsGridResults = wc.GetCummululativeProjectSchedule();
     this.PopulateDataGrid(dsGridResults, grdSchedule,ddlYear.SelectedItem.Value, ddlMonth.SelectedItem.Value + "(" + ddlYear.SelectedItem.Value + ")");
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:8,代码来源:twc_weekly_project_scheduling.aspx.cs


示例8: PageResultGrid1

 public void PageResultGrid1(object sender, DataGridPageChangedEventArgs e)
 {
     DataSet dsGridResults;
     grdRpResults.CurrentPageIndex = e.NewPageIndex;
     Whitfieldcore wUser = new Whitfieldcore();
     dsGridResults = wUser.GetAllSubMaterials(ddlMatType.SelectedItem.Value, "Grid");
     this.PopulateDataGrid(dsGridResults);
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:8,代码来源:Newestimate_material.aspx.cs


示例9: PageResultGridNotes

 public void PageResultGridNotes(object sender, DataGridPageChangedEventArgs e)
 {
     Whitfieldcore wc = new Whitfieldcore();
     DataSet dsGridResults;
     grdSchedule.CurrentPageIndex = e.NewPageIndex;
     dsGridResults = wc.GetCummululativeProjectSchedule();
     this.PopulateDataGrid(dsGridResults, grdSchedule);
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:8,代码来源:twc_project_scheduling.aspx.cs


示例10: grdpl1_DeleteCommand

 public void grdpl1_DeleteCommand(object sender, DataGridCommandEventArgs e)
 {
     String DetailId = "";
     DetailId = grdpl1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
     Whitfieldcore _dbClass = new Whitfieldcore();
     _dbClass.DeleteSubMaterials(Convert.ToInt32(DetailId));
     this.DisplayGrid(Convert.ToInt32(ViewState["material_id"].ToString()));
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:8,代码来源:submaterial.ascx.cs


示例11: grdpl1_UpdateCommand

 public void grdpl1_UpdateCommand(object sender, DataGridCommandEventArgs e)
 {
     String DetailId = grdpl1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
     Whitfieldcore _dbClass = new Whitfieldcore();
     _dbClass.UPDATESubMaterials(Convert.ToInt32(DetailId), ((TextBox)(e.Item.FindControl("txtthickness"))).Text, ((TextBox)(e.Item.FindControl("txtlength"))).Text, ((TextBox)(e.Item.FindControl("txtweight"))).Text, ((TextBox)(e.Item.FindControl("txtwidth"))).Text, ((TextBox)(e.Item.FindControl("txtDescription"))).Text, ((TextBox)(e.Item.FindControl("txtCost"))).Text, Convert.ToInt32(((DropDownList)(e.Item.FindControl("ddlUOM"))).SelectedItem.Value), ((RadioButtonList)(e.Item.FindControl("chkLEED"))).SelectedItem.Value, ((TextBox)(e.Item.FindControl("txtManufacturer"))).Text, ((RadioButtonList)(e.Item.FindControl("chkFSC"))).SelectedItem.Value, ((TextBox)(e.Item.FindControl("txtMaterial_Code"))).Text, ((TextBox)(e.Item.FindControl("txtNotes"))).Text, ((RadioButtonList)(e.Item.FindControl("chkDefault_Field"))).SelectedItem.Value);
     grdpl1.EditItemIndex = -1;
     grdpl1.ShowFooter = true;
     this.DisplayGrid(Convert.ToInt32(ViewState["material_id"].ToString()));
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:9,代码来源:submaterial.ascx.cs


示例12: grdpl1_DeleteCommand

 public void grdpl1_DeleteCommand(object sender, DataGridCommandEventArgs e)
 {
     String DetailId = "";
     DetailId = grdpl1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
     Whitfieldcore _dbClass = new Whitfieldcore();
     _dbClass.DELETEMaterialinWorkOrder(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderID"].ToString(),Convert.ToInt32(DetailId));
     this.DisplayGrid(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderID"].ToString());
        // ((YourPageClass)this.Page).YourMethod();
     Page.GetType().InvokeMember("DisplayGrid", BindingFlags.InvokeMethod, null, this.Page, null);
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:10,代码来源:workorder_materials.ascx.cs


示例13: btnnew_Click

 protected void btnnew_Click(object sender, EventArgs e)
 {
     Whitfieldcore wUser = new Whitfieldcore();
     //ArrayList chkArray = GetSelectedItems(ChkProjContacts
     for (int i = 0; i < RdoPrjClient.Items.Count; i++)
     {
         if (RdoPrjClient.Items[i].Selected)
             wUser.AddPrimaryContact(Convert.ToInt32(ViewState["EstNum"].ToString()), Convert.ToInt32(ViewState["Clientid"].ToString()), Convert.ToInt32(RdoPrjClient.Items[i].Value));
     }
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:10,代码来源:AddContacts.aspx.cs


示例14: grd1_DeleteCommand

 public void grd1_DeleteCommand(object sender, DataGridCommandEventArgs e)
 {
     contingency _wc = new contingency();
     String DetailId = "";
     DetailId = grd1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
     Whitfieldcore _dbClass = new Whitfieldcore();
     _wc.DeleteSubContingency(Convert.ToInt32(DetailId));
     DataSet dsGridResults = _wc.FetchSubContingencyData(Convert.ToInt32(ViewState["cont_id"].ToString()));
     PopulateDataGrid(dsGridResults, grd1);
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:10,代码来源:master_contingency.ascx.cs


示例15: grdpl1_UpdateCommand

 public void grdpl1_UpdateCommand(object sender, DataGridCommandEventArgs e)
 {
     String DetailId = grdpl1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
     Whitfieldcore _dbClass = new Whitfieldcore();
     _dbClass.UPDATEMaterialinWorkOrder(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderID"].ToString(), Convert.ToInt32(DetailId), ((TextBox)(e.Item.FindControl("txtqty"))).Text);
     grdpl1.EditItemIndex = -1;
     grdpl1.ShowFooter = true;
     this.DisplayGrid(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderID"].ToString());
     Page.GetType().InvokeMember("DisplayGrid", BindingFlags.InvokeMethod, null, this.Page, null);
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:10,代码来源:workorder_materials.ascx.cs


示例16: BindMonths

 public void BindMonths()
 {
     DataSet dsGrp = new DataSet();
     Whitfieldcore wUser = new Whitfieldcore();
     DataSet hash = wUser.GetMonths();
     ddlMonth.DataSource = hash;
     ddlMonth.DataTextField = "month_name";
     ddlMonth.DataValueField = "month_name";
     ddlMonth.DataBind();
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:10,代码来源:daily_prod_report.aspx.cs


示例17: grdEstimateMaterials_DeleteCommand

 public void grdEstimateMaterials_DeleteCommand(object sender, DataGridCommandEventArgs e)
 {
     contingency _wc = new contingency();
     String DetailId = "";
     DetailId = grdEstimateMaterials.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
     Whitfieldcore _dbClass = new Whitfieldcore();
     _wc.DeleteTerms(Convert.ToInt32(DetailId));
     _wc.DeleteSubTermsForTems(Convert.ToInt32(DetailId));
     DataSet dsGridResults = _wc.FetchTermsData();
     PopulateDataGrid(dsGridResults, grdEstimateMaterials);
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:11,代码来源:master_terms.aspx.cs


示例18: btnnew_Click

 protected void btnnew_Click(object sender, EventArgs e)
 {
     Whitfieldcore wUser = new Whitfieldcore();
     //ArrayList chkArray = GetSelectedItems(ChkProjContacts
     for (int i = 0; i < RdoprjMaterials.Items.Count; i++)
     {
         if (RdoprjMaterials.Items[i].Selected)
             wUser.PopulateMaterialinWorkOrder(Convert.ToInt32(ViewState["EstNum"].ToString()), ViewState["WorkOrderNumber"].ToString(), Convert.ToInt32(RdoprjMaterials.Items[i].Value));
     }
     //Response.Write("<script language='javascript'>parent.location.replace('whitfield_estimation.aspx');</script>");
     Response.Write("<script language='javascript'>parent.location.replace('Whitfield_estimation.aspx?EstNum=" + ViewState["EstNum"].ToString() + "');</script>");
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:12,代码来源:pick_materials.aspx.cs


示例19: btnnew_Click

 protected void btnnew_Click(object sender, EventArgs e)
 {
     Whitfieldcore wUser = new Whitfieldcore();
     wUser.DeleteProjectClient(Convert.ToInt32(ViewState["EstNum"].ToString()));
     //ArrayList chkArray = GetSelectedItems(ChkProjContacts
     for (int i = 0; i < ChkPrjClient.Items.Count; i++)
     {
         if (ChkPrjClient.Items[i].Selected)
             wUser.PopulateProject_client(Convert.ToInt32(ViewState["EstNum"].ToString()), Convert.ToInt32(ChkPrjClient.Items[i].Value));
     }
     lblMsg.Text = "Your record is added successfully.";
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:12,代码来源:project_client.aspx.cs


示例20: BindContingency

 private void BindContingency(Int32 EstNum)
 {
     DataSet dsGrp = new DataSet();
     Whitfieldcore wUser = new Whitfieldcore();
     dsGrp = wUser.GetMasterContingencies(EstNum);
     if (dsGrp.Tables[0].Rows.Count > 0)
     {
         ChkCongingency.DataSource = dsGrp;
         ChkCongingency.DataTextField = "description";
         ChkCongingency.DataValueField = "sub_contingency_id";
         ChkCongingency.DataBind();
     }
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:13,代码来源:newcontingencytoProject.aspx.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Widget类代码示例发布时间:2022-05-24
下一篇:
C# LSL_Types.list类代码示例发布时间: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