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

C# ObjectDataSourceMethodEventArgs类代码示例

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

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



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

示例1: DailyinfoObjectDataSource_Inserting

 protected void DailyinfoObjectDataSource_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 {
     KMobile.Web.UI.WebControls.CollapsiblePanel collapsiblePanel = (KMobile.Web.UI.WebControls.CollapsiblePanel)DailyinfoLoginView.FindControl("CollapsiblePanel1");
     DropDownList selectDailymessageDropDownList = (DropDownList)collapsiblePanel.FindControl("SelectDailymessageDropDownList");
     e.InputParameters["dailymessageid"] = selectDailymessageDropDownList.SelectedValue;
     e.InputParameters["date"] = currentDate.CurrentDate;
 }
开发者ID:andersruberg,项目名称:RehabWeb,代码行数:7,代码来源:Bookings_pilot.aspx.cs


示例2: odsHighCourtAppeal_Inserting

 protected void odsHighCourtAppeal_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 {
     FormViewParameter Parameters = new FormViewParameter();
     Parameters.Values = (DataRow) e.InputParameters["Values"];
     e.InputParameters["Parameter"] = Parameters;
     e.InputParameters.Remove("Values");
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:7,代码来源:HighCourtAppeal.aspx.cs


示例3: odsPostalStamp_Updating

 protected void odsPostalStamp_Updating(object sender, ObjectDataSourceMethodEventArgs e)
 {
     FormViewParameter Parameters = new FormViewParameter();
     Parameters.Values = (DataRow) e.InputParameters["Values"];
     e.InputParameters["Parameter"] = Parameters;
     e.InputParameters.Remove("Values");
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:7,代码来源:PostalStampDenomMaster.aspx.cs


示例4: odsPackage_Inserting

    protected void odsPackage_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
    {
        Package pak = (Package)e.InputParameters["entity"];

        pak.ModifiedDate = DateTime.Now;
        //pak.ValuePerHour = ucCurrField
    }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:7,代码来源:Package_General.ascx.cs


示例5: odsOfficeCommunicationById_Inserting

 protected void odsOfficeCommunicationById_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 {
     FormViewParameter Parameters = new FormViewParameter();
     Parameters.Values = (DataRow) e.InputParameters["Values"];
     e.InputParameters["Parameter"] = Parameters;
     e.InputParameters.Remove("Values");
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:7,代码来源:OfficeCommunicationLKP.aspx.cs


示例6: OdsQualificationMaster_Inserting

 protected void OdsQualificationMaster_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 {
     FormViewParameter Parameters = new FormViewParameter();
     Parameters.Values = (DataRow) e.InputParameters["Values"];
     e.InputParameters["Parameter"] = Parameters;
     e.InputParameters.Remove("Values");
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:7,代码来源:QualificationMaster.aspx.cs


示例7: ODS_Uom_Inserting

    protected void ODS_Uom_Inserting(object source, ObjectDataSourceMethodEventArgs e)
    {
        Uom uom = (Uom)e.InputParameters[0];

        uom.Description = uom.Description.Trim();
        uom.Name = uom.Name.Trim();

        if (uom.Code == null || uom.Code.Trim() == string.Empty)
        {
            ShowWarningMessage("MasterData.Uom.Code.Empty", "");
            e.Cancel = true;
            return;
        }
        else
        {
            uom.Code = uom.Code.Trim();
        }

        if (TheUomMgr.LoadUom(uom.Code) == null)
        {
            ShowSuccessMessage("MasterData.Uom.AddUom.Successfully", uom.Code);
        }
        else
        {
            e.Cancel = true;
            ShowErrorMessage("MasterData.Uom.AddUom.Error", uom.Code);
        }
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:28,代码来源:Uom.ascx.cs


示例8: odsRoles_Updating

 protected void odsRoles_Updating(object sender, ObjectDataSourceMethodEventArgs e)
 {
     var  role = e.InputParameters["entity"] as Vivina.Erp.DataClasses.Role;
     role.ApplicationId = (Page as Vivina.Erp.SystemFramework.PageBase).Application.ApplicationId;
     role.CompanyId = (Page as Vivina.Erp.SystemFramework.PageBase).Company.CompanyId;
     role.LastUpdatedDate = DateTime.Now;
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:7,代码来源:Role_General.ascx.cs


示例9: ODS_Bom_Inserting

    protected void ODS_Bom_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
    {
        string uom = ((Controls_TextBox)(this.FV_Bom.FindControl("tbUom"))).Text.Trim();
        string region = ((Controls_TextBox)(this.FV_Bom.FindControl("tbRegion"))).Text.Trim();

        bom = (Bom)e.InputParameters[0];
        item = TheItemMgr.LoadItem(bom.Code);
        if (item != null)
        {
            //default description and uom
            if (bom.Description.Trim() == "")
            {
                bom.Description = item.Description;
            }
            if (uom.Trim() == "")
            {
                bom.Uom = item.Uom;
            }
            else
            {
                bom.Uom = TheUomMgr.LoadUom(uom);
            }
        }
        if (region == "")
        {
            bom.Region = null;
        }
        else
        {
            bom.Region = TheRegionMgr.LoadRegion(region);
        }
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:32,代码来源:New.ascx.cs


示例10: ODS_Currency_Inserting

 protected void ODS_Currency_Inserting(object source, ObjectDataSourceMethodEventArgs e)
 {
     string code = ((TextBox)(this.FV_Currency.FindControl("tbCode"))).Text;
     string name = ((TextBox)(this.FV_Currency.FindControl("tbName"))).Text;
     if (code == null || code.Trim() == string.Empty)
     {
         ShowWarningMessage("MasterData.Currency.Code.Empty", "");
         e.Cancel = true;
         return;
     }
     if (name == null || name.Trim() == string.Empty)
     {
         ShowWarningMessage("MasterData.Currency.Name.Empty", "");
         e.Cancel = true;
         return;
     }
     if (TheCurrencyMgr.LoadCurrency(code) == null)
     {
         ShowSuccessMessage("MasterData.Currency.AddCurrency.Successfully", code);
     }
     else
     {
         e.Cancel = true;
         ShowErrorMessage("MasterData.Currency.CodeExist", code);
         return;
     }
 }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:27,代码来源:Main.ascx.cs


示例11: sourceAssetObject_Inserting

 protected void sourceAssetObject_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 {
     string guidString = ViewState["ClientAssetClass_ClientGUID"].ToString();
     Guid guid = new Guid(guidString);
     var asset = (ClientAssetClass)e.InputParameters["clientAsset"];
     asset.ClientGUID = guid;
 }
开发者ID:garsiden,项目名称:Report-Generator,代码行数:7,代码来源:assetclasses.aspx.cs


示例12: ODS_WorkCenter_Updating

 protected void ODS_WorkCenter_Updating(object sender, ObjectDataSourceMethodEventArgs e)
 {
     WorkCenter workCenter = (WorkCenter)e.InputParameters[0];
     WorkCenter oldWC = TheWorkCenterMgr.LoadWorkCenter(WorkCenterCode);
     workCenter.Party = oldWC.Party;
     workCenter.Type = ((Controls_TextBox)(this.FV_WorkCenter.FindControl("tbType"))).Text;
 }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:7,代码来源:Edit.ascx.cs


示例13: OdsUOMMaster_Inserting

 protected void OdsUOMMaster_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 {
     //FormViewParameter Parameters = new FormViewParameter();
     //Parameters.Values = (DataRow) e.InputParameters["Values"];
     //e.InputParameters["Parameter"] = Parameters;
     //e.InputParameters.Remove("Values");
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:7,代码来源:UnitOfManagementMaster.aspx.cs


示例14: sourceEmployees_Updating

	protected void sourceEmployees_Updating(object sender, ObjectDataSourceMethodEventArgs e)
	{
		e.InputParameters["id"] = e.InputParameters["EmployeeID"];
		e.InputParameters.Remove("EmployeeID");
		sourceEmployees.UpdateMethod = "UpdateEmployeea";

	}
开发者ID:Helen1987,项目名称:edu,代码行数:7,代码来源:ObjectDataSourceUpdate2.aspx.cs


示例15: ODS_Workday_Updating

    protected void ODS_Workday_Updating(object sender, ObjectDataSourceMethodEventArgs e)
    {
        string region = ((TextBox)(this.FV_Workday.FindControl("tbRegion"))).Text.Trim();
        string workcenter = ((TextBox)(this.FV_Workday.FindControl("tbWorkCenter"))).Text.Trim();
        RadioButtonList rblType = (RadioButtonList)(this.FV_Workday.FindControl("rblType"));

        workday = (Workday)e.InputParameters[0];
        if (region == "")
        {
            workday.Region = null;
        }
        else
        {
            workday.Region = TheRegionMgr.LoadRegion(region);
            if (workday.Region == null)
            {
                ShowWarningMessage("MasterData.WorkCalendar.WarningMessage.RegionInvalid", region);
                e.Cancel = true;
            }
        }
        if (workcenter == "")
        {
            workday.WorkCenter = null;
        }
        else
        {
            workday.WorkCenter = TheWorkCenterMgr.LoadWorkCenter(workcenter);
            if (workday.WorkCenter == null)
            {
                ShowWarningMessage("MasterData.WorkCalendar.WarningMessage.WorkCenterInvalid", workcenter);
                e.Cancel = true;
            }
        }
        workday.Type = rblType.SelectedValue;
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:35,代码来源:Edit.ascx.cs


示例16: OdsServiceVersion_Inserting

 protected void OdsServiceVersion_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 {
     ESB.BusinessServiceVersion version = e.InputParameters["entity"] as ESB.BusinessServiceVersion;
     version.ServiceID = Session["ServiceReg_ServiceID"].ToString();
     version.CreateDateTime = DateTime.Now;
     version.CreatePersionID = AuthUser.UserID;
 }
开发者ID:vebin,项目名称:soa,代码行数:7,代码来源:ServiceReg.aspx.cs


示例17: odsSpicemendetails_Inserting

 protected void odsSpicemendetails_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 {
     e.InputParameters.Remove("FullName");
     DataTable dt = new DataTable();
     dt = (DataTable)ViewState["Name"];
     e.InputParameters.Add("FullName",dt);
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:7,代码来源:SpecimenSignature.aspx.cs


示例18: ODS_Item_Inserting

    protected void ODS_Item_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
    {
        item = (Item)e.InputParameters[0];

        item.Desc1 = item.Desc1.Trim();
        item.Desc2 = item.Desc2.Trim();
        item.TextField1 = item.TextField1.Trim();
        //item.Memo = item.Memo.Trim();

        item.Spec = item.Spec.Trim();
        item.Brand = item.Brand.Trim();
        item.Manufacturer = item.Manufacturer.Trim();

        if (item.Code == null || item.Code.Trim() == string.Empty)
        {
            ShowErrorMessage("MasterData.Item.Code.Empty");
            e.Cancel = true;
            return;
        }
        else
        {
            item.Code = item.Code.Trim();
        }

        if (TheItemMgr.LoadItem(item.Code) != null)
        {
            e.Cancel = true;
            ShowErrorMessage("MasterData.Item.CodeExist", item.Code);
            return;
        }

        string uom = ((Controls_TextBox)(this.FV_Item.FindControl("tbUom"))).Text.Trim() == string.Empty ? "EA"
            : ((Controls_TextBox)(this.FV_Item.FindControl("tbUom"))).Text.Trim();
        item.Uom = TheUomMgr.LoadUom(uom);

        string location = ((Controls_TextBox)(this.FV_Item.FindControl("tbLocation"))).Text.Trim();
        item.Location = TheLocationMgr.LoadLocation(location);

        string itemCategory = ((Controls_TextBox)(this.FV_Item.FindControl("tbItemCategory"))).Text.Trim();
        item.ItemCategory = TheItemCategoryMgr.LoadItemCategory(itemCategory);

        string bom = ((Controls_TextBox)(this.FV_Item.FindControl("tbBom"))).Text.Trim();
        item.Bom = TheBomMgr.LoadBom(bom);

        //string routing = ((Controls_TextBox)(this.FV_Item.FindControl("tbRouting"))).Text.Trim();
        //item.Routing = TheRoutingMgr.LoadRouting(routing);

        decimal uc = item.UnitCount;
        uc = System.Decimal.Round(uc, 8);
        if (uc == 0)
        {
            ShowErrorMessage("MasterData.Item.UC.Zero");
            e.Cancel = true;
        }

        item.ImageUrl = UploadItemImage(item.Code);
        item.LastModifyDate = DateTime.Now;
        item.LastModifyUser = this.CurrentUser;
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:59,代码来源:New.ascx.cs


示例19: ODS_Flow_Inserting

    protected void ODS_Flow_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
    {
        flow = (Flow)e.InputParameters[0];

        Controls_TextBox tbRefFlow = (Controls_TextBox)this.FV_Flow.FindControl("tbRefFlow");
        Controls_TextBox tbPartyFrom = (Controls_TextBox)this.FV_Flow.FindControl("tbPartyFrom");
        Controls_TextBox tbLocFrom = (Controls_TextBox)this.FV_Flow.FindControl("tbLocFrom");
        Controls_TextBox tbLocTo = (Controls_TextBox)this.FV_Flow.FindControl("tbLocTo");
        com.Sconit.Control.CodeMstrDropDownList ddlOrderTemplate = (com.Sconit.Control.CodeMstrDropDownList)(this.FV_Flow.FindControl("ddlOrderTemplate"));
        com.Sconit.Control.CodeMstrDropDownList ddlReceiptTemplate = (com.Sconit.Control.CodeMstrDropDownList)(this.FV_Flow.FindControl("ddlReceiptTemplate"));
        //com.Sconit.Control.CodeMstrDropDownList ddlHuTemplate = (com.Sconit.Control.CodeMstrDropDownList)(this.FV_Flow.FindControl("ddlHuTemplate"));
        
        com.Sconit.Control.CodeMstrDropDownList ddlCreateHuOption = (com.Sconit.Control.CodeMstrDropDownList)this.FV_Flow.FindControl("ddlCreateHuOption");

        if (tbRefFlow != null && tbRefFlow.Text.Trim() != string.Empty)
        {
            flow.ReferenceFlow = TheFlowMgr.CheckAndLoadFlow(tbRefFlow.Text.Trim()).Code;
        }

        if (tbPartyFrom != null && tbPartyFrom.Text.Trim() != string.Empty)
        {
            flow.PartyFrom = ThePartyMgr.LoadParty(tbPartyFrom.Text.Trim());
        }

        if (tbLocFrom != null && tbLocFrom.Text.Trim() != string.Empty)
        {
            flow.LocationFrom = TheLocationMgr.LoadLocation(tbLocFrom.Text.Trim());
        }
        if (tbLocTo != null && tbLocTo.Text.Trim() != string.Empty)
        {
            flow.LocationTo = TheLocationMgr.LoadLocation(tbLocTo.Text.Trim());
        }
        if (ddlOrderTemplate.SelectedIndex != -1)
        {
            flow.OrderTemplate = ddlOrderTemplate.SelectedValue;
        }
        if (ddlReceiptTemplate.SelectedIndex != -1)
        {
            flow.ReceiptTemplate = ddlReceiptTemplate.SelectedValue;
        }
        //if (ddlHuTemplate.SelectedIndex != -1)
        //{
        //    flow.HuTemplate = ddlHuTemplate.SelectedValue;
        //}
        if (ddlCreateHuOption.SelectedIndex != -1)
        {
            flow.CreateHuOption = ddlCreateHuOption.SelectedValue;
        }
        flow.CheckDetailOption = BusinessConstants.CODE_MASTER_CHECK_ORDER_DETAIL_OPTION_VALUE_NOT_CHECK;
        flow.Type = BusinessConstants.CODE_MASTER_FLOW_TYPE_VALUE_PRODUCTION;
        flow.AntiResolveHu = BusinessConstants.CODE_MASTER_ANTI_RESOLVE_HU_VALUE_NOT_RESOLVE;
        flow.BillSettleTerm = null;
        flow.PartyTo = flow.PartyFrom;
        flow.CreateUser = this.CurrentUser;
        flow.CreateDate = DateTime.Now;
        flow.LastModifyUser = this.CurrentUser;
        flow.LastModifyDate = DateTime.Now;
        flow.IsAsnUniqueReceipt = true;
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:59,代码来源:New.ascx.cs


示例20: ObjectDataSource2_Updating

 protected void ObjectDataSource2_Updating(object sender, ObjectDataSourceMethodEventArgs e)
 {
     EmailFormatInfo email = (EmailFormatInfo)e.InputParameters[0];
     if (email.EmailID == 2)
     {
         email.EmailTemplete = Server.HtmlDecode(email.EmailTemplete);
     }
 }
开发者ID:cathychen00,项目名称:003.DianZiShangWu,代码行数:8,代码来源:EmailList.aspx.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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