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


C# IdentityObject类代码示例

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


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


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