本文整理汇总了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;
}
示例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");
}
示例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");
}
示例4: odsPackage_Inserting
protected void odsPackage_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
{
Package pak = (Package)e.InputParameters["entity"];
pak.ModifiedDate = DateTime.Now;
//pak.ValuePerHour = ucCurrField
}
示例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");
}
示例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");
}
示例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);
}
}
示例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;
}
示例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);
}
}
示例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;
}
}
示例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;
}
示例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;
}
示例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");
}
示例14: sourceEmployees_Updating
protected void sourceEmployees_Updating(object sender, ObjectDataSourceMethodEventArgs e)
{
e.InputParameters["id"] = e.InputParameters["EmployeeID"];
e.InputParameters.Remove("EmployeeID");
sourceEmployees.UpdateMethod = "UpdateEmployeea";
}
示例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;
}