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


C# ObjectDataSourceMethodEventArgs类代码示例

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


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


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