本文整理汇总了C#中IdentityObject类的典型用法代码示例。如果您正苦于以下问题:C# IdentityObject类的具体用法?C# IdentityObject怎么用?C# IdentityObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IdentityObject类属于命名空间,在下文中一共展示了IdentityObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ShippingDoc
public ShippingDoc( IdentityObject ident)
{
InitializeComponent();
base.SaveIdent(ident);
label_UserName.Text = base.ident.UserName.Trim();
label_UserID.Text = base.ident.UserID.Trim();
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:ShippingDoc.cs
示例2: view_training_progress_and_report
public view_training_progress_and_report(IdentityObject ident)
{
InitializeComponent();
base.SaveIdent(ident);
base.DisplayIdent(ident);
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:view+training+progress+and+report.cs
示例3: Training_Evaluation_Template
public Training_Evaluation_Template(IdentityObject ident)
{
InitializeComponent();
label_SubName.Text = "Training and Evaluation";
base.SaveIdent(ident);
base.DisplayIdent(ident);
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:Training_Evaluation_Template.cs
示例4: Change
public Change(IdentityObject _ident, string _cmd, string tablename, string _docNum,string _docType, string type)
{
InitializeComponent();
base.SaveIdent(_ident);
base.DisplayIdent(_ident);
label_UserName.Text = base.ident.UserName.Trim();
label_UserID.Text = base.ident.UserID.Trim();
textBox_Cmd.Text = _cmd;
textBox_TableName.Text = tablename;
textBox_DocNum.Text = _docNum;
textBox_DocType.Text = _docType;
textBox_DataStrings.Visible = true;
//LoadSelectionInfo(_docType, _docNum);
LoadBBasicDocInfo();
// button_GetDocument_Click(this, null);
if (type == "view")
{
button_approve.Visible = false;
}
else if (type == "approve")
{
button_approve.Visible = true;
}
button_GetDoc_Click(this, null);
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:25,代码来源:Change.cs
示例5: DisplayDelivery
public DisplayDelivery(IdentityObject _ident)
{
InitializeComponent();
ident = _ident;
LoadDelivery();
// comboBox1.SelectedIndex = 0;
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:DisplayDelivery.cs
示例6: SalesAndMarketingMain
public SalesAndMarketingMain(IdentityObject ident)
{
InitializeComponent();
base.SaveIdent(ident);
base.DisplayIdent(ident);
label_SubName.Text = "Sales And Marketing";
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:SalesAndMarketingMain.cs
示例7: HR_Main
public HR_Main()
{
InitializeComponent();
IdentityObject ident = new IdentityObject();
base.SaveIdent(ident);
base.DisplayIdent(ident);
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:HR_Main.cs
示例8: DisplayEmployee
public DisplayEmployee(IdentityObject _ident)
{
InitializeComponent();
base.SaveIdent(_ident);
LoadEmployees();
comboBox1.SelectedIndex = 1;
}
开发者ID:hemalawati,项目名称:Local-Bikes-Store,代码行数:7,代码来源:DisplayEmployee.cs
示例9: AddServiceOrderItem
public AddServiceOrderItem(IdentityObject _ident, String _ServiceProductType ,String _DocNUM, String _DocType, String _ProductID, String _Quantity , String _Comment)
{
InitializeComponent();
base.SaveIdent( _ident);
//FillCustomerList();
panel1.Visible = true;
DataTable Services = Utilities.DataBaseUtility.GetTable("Select ServiceProductType, ServiceProductDescription from Service_Type");
ServiceProductTypeCombobox.DataSource = Services;
ServiceProductTypeCombobox.DisplayMember = "ServiceProductDescription";
ServiceProductTypeCombobox.ValueMember = "ServiceProductType";
CommentTxt.Text = _Comment;
ORDER_DOCNUMTXT.Text = _DocNUM;
ORDERDOCTYPETXT.Text = _DocType;
ProductIDTXT.Text = _ProductID;
QuanitytTXT.Text = _Quantity;
//If service product is passed then it is update else it is add item
if (!String.IsNullOrEmpty(_ServiceProductType) )
{ ServiceProductTypeCombobox.SelectedValue = _ServiceProductType;
button2.Text = "Update ServiceOrder";
}
// _ServiceTypes = Utilities.DataBaseUtility.GetList("select DocNum, DocType, EmployeeID, ServiceProductType, ServiceProductDescription, Rate, Standard_Hrs, GrossPrice, DateCreated, DateModified from Service_Type " + ProdTypeSql );
//FillTextBoxes();
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:26,代码来源:AddServiceOrderItem.cs
示例10: DisplayServiceTypes
public DisplayServiceTypes(IdentityObject _ident)
{
InitializeComponent();
base.SaveIdent( _ident);
base.DisplayIdent(ident);
//FillCustomerList();
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:DisplayServiceTypes.cs
示例11: LogSrvcReq
public LogSrvcReq(IdentityObject ident)
{
InitializeComponent();
base.SaveIdent(ident);
base.DisplayIdent(ident);
label_SubName.Text="SALES S&M > LIST OF SERVICES";
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:LogSrvcReq.cs
示例12: ConfirmOrder
public ConfirmOrder(IdentityObject ident,int promoProdId,String id,String price)
{
productOrBundle = id;
InitializeComponent();
this. price=Convert.ToDouble(price);
base.SaveIdent(ident);
base.DisplayIdent(ident);
this.promoProdId = promoProdId;
label_SubName.Text = "Pre Sales";
// MessageBox.Show("price-----------------------"+price);
label7.Text += price;
dataGridView2.DataSource= Utilities.DataBaseUtility.GetTable("select EmplID,FirstName,LastName from Employees");
dataGridView3.DataSource = Utilities.DataBaseUtility.GetTable("select CustomerID,FirstName,LastName from Customers");
if (id.Equals("bundle"))
{
dataGridView1.DataSource = Utilities.DataBaseUtility.GetTable("select * from Bundle_Details where PromoCode=" + promoProdId);
label6.Text = "Confirm Promo Bundle Details";
}
else
{
// MessageBox.Show("Confirm order"+promoProdId);
dataGridView1.DataSource = Utilities.DataBaseUtility.GetTable("select * from Products where ProductID=" + promoProdId);
label6.Text = "Confirm Product Details";
}
//MessageBox.Show("Confirm order");
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:27,代码来源:ConfirmOrder.cs
示例13: AddServiceOrder
public AddServiceOrder(IdentityObject ident, String _Orderid, string Customerinp)
{
InitializeComponent();
base.SaveIdent(ident);
base.DisplayIdent(ident);
ident_local = ident;
label_SubName.Text = "Sales_sm";
Doctype.Text ="22";
CustomerID.Text = Customerinp;
if (_Orderid == "")
{
_NewOrder = Utilities.DataBaseUtility.GetList("select max(Docnum)+1 from Service_Order_Details" );
FillTextBoxes("New");
FormMode = "New";
}
else {
_NewOrder = Utilities.DataBaseUtility.GetList("select * from Service_Order where Docnum =" +_Orderid );
FillTextBoxes("Update");
FormMode = "Update";
}
bind_data("Service_Order_Details", DocNum.Text );
ResultString = Customerinp;
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:26,代码来源:AddServiceOrder.cs
示例14: Authorize
public static Boolean Authorize(IdentityObject _ident, string _resource)
{
bool _authorized = false;
if (_ident.Role == "employee")
_authorized = true;
return _authorized;
}
开发者ID:hemalawati,项目名称:Local-Bikes-Store,代码行数:7,代码来源:Authorize.cs
示例15: DisplayInventoryItem
public DisplayInventoryItem(IdentityObject in_ident)
{
InitializeComponent();
_ident = in_ident;
base.ident = in_ident;
label_Ident.Text = _ident.UserID.ToString() + " : " + _ident.UserName;
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:DisplayInventoryItem.cs
示例16: Execute
public static string Execute(string _sqlCommand, IdentityObject ident)
{
string _message = "no errors";
OleDbConnection conn;
conn = GetConnectionObject();
try
{
//if (ident.ActionLevel < 5)
//{
// _message = "command requires a higher permission level than " + ident.ActionLevel + " by user : " + ident.UserName;
// // return _message;
//}
OleDbCommand _command = new OleDbCommand(_sqlCommand, conn);
conn.Open();
int _count = _command.ExecuteNonQuery();
if (_count < 1)
{
_message = "could not execute " + _sqlCommand;
return _message;
}
else return "no errors";
}
catch (Exception e)
{
return (e.ToString());
}
finally
{
conn.Close();
}
}
开发者ID:hemalawati,项目名称:Local-Bikes-Store,代码行数:31,代码来源:DataBaseUtility.cs
示例17: DisplaySelectedObject
public DisplaySelectedObject(IdentityObject ident)
{
InitializeComponent();
// textBox_TableName.Text = "Sales_sm";
base.SaveIdent(ident);
base.DisplayIdent(ident);
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:DisplaySelectedObject.cs
示例18: Documents_Main
public Documents_Main(IdentityObject ident)
{
InitializeComponent();
base.SaveIdent(ident);
base.DisplayIdent(ident);
Utilities.Documents.ListObjects pds = new Utilities.Documents.ListObjects(base.ident); pds.Show();
}
开发者ID:hemalawati,项目名称:Local-Bikes-Store,代码行数:7,代码来源:Documents_Main.cs
示例19: ListObjects
public ListObjects(IdentityObject ident)
{
InitializeComponent();
base.SaveIdent(ident);
base.DisplayIdent(ident);
label_SubName.Text="Sales_sm";
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:7,代码来源:ListObjects.cs
示例20: CreatePurchaseOrder
public CreatePurchaseOrder(IdentityObject ident,Purchases.InventoryItem item)
{
InitializeComponent();
label_SubName.Text = "New Purchase Order";
_ident = ident;
textBox_Role.Text = _ident.Role;
if (_ident == null) _ident = new IdentityObject("111", "Johnson", "clerk", 1, 2);
textBox_Employee.Text = _ident.UserID;
textBox_AuthLevel.Text = _ident.ActionLevel.ToString();
FillSupplier();
comboBox1.SelectedIndex = item.Supplier;
textBox_Supplier.Text = item.Supplier.ToString();
comboBox1_SelectedIndexChanged(this, null);
_productID = item.ProductID.ToString();
//textBox_Comment.Text = "Product No:" + _productID + "(" + item.ProductName +")";
textBox_OnHand.Text = item.OnHand.ToString();
textBox_MinQuantity.Text = item.MinQuantity.ToString();
textBox_Quantity.Text = (item.MinQuantity - item.OnHand).ToString();
textBox_Price.Text = item.Cost.ToString();
textBox_ProductID.Text = item.InvID.ToString();
textBox_PO_ID2.Text = item.ProductName.ToString();
button_Preview.Visible = false;
button_DataToText.Visible = false;
button_ConvertToSql.Visible = false;
NewPurchaseOrder(_ident);
}
开发者ID:dingorkarj,项目名称:Local_Bike_Store_App,代码行数:27,代码来源:CreatePurchaseOrder.cs
注:本文中的IdentityObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论