本文整理汇总了C#中Script.DataBinding方法的典型用法代码示例。如果您正苦于以下问题:C# Script.DataBinding方法的具体用法?C# Script.DataBinding怎么用?C# Script.DataBinding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Script
的用法示例。
在下文中一共展示了Script.DataBinding方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main(string[] args)
{
DataDriven.Data = ExcelHelper.Current.Open(@"C:\Demo\1.xlsx").ReadAll();
ExcelHelper.Current.Close();
//DataDriven.GlobalBindingModeType.IsUsingSampleData = true;
DataDriven.GlobalBindingModeType.RecusionMode = RecusionType.Recusion;
DataDriven.NonSharedTables = new List<string>();
DataDriven.CurrentId = 1;
//DataDriven.GlobalBindingModeType.SettingMode = SettingType.PropertyOnly;
SAPTestHelper.Current.SetSession();
SAPTestHelper.Current.TurnScreenLog(ScreenLogLevel.All);
Script s = new Script();
s.DataBinding();
SAPTestHelper.Current.SaveLog(@"1.xml");
ExcelHelper.Current.Create(@"c:\Demo\2.xlsx");
foreach(DataTable dataTable in DataDriven.Data.Tables)
{
ExcelHelper.Current.Write(dataTable);
}
ExcelHelper.Current.Close();
//SAPGuiScreen sc = new DisplayMaterialDocument_Initial();
//sc.StartTransaction("MB1A");
//sc.DataBinding();
//sc = new EnterGoodsIssue_NewItems();
//sc.DataBinding();
//sc = new EnterGoodsIssue_NewItem();
//sc.DataBinding();
//SAPTestHelper.Current.SaveLog("1.xml");
//SC_4002 s = new SC_4002();
//s.DataBinding();
//SAPTestHelper.Current.SetSession();
//SC_102 sc = new SC_102();
//sc.StartTransaction("VA02");
//sc.DataBinding();
}