本文整理汇总了C#中Organization_mst类的典型用法代码示例。如果您正苦于以下问题:C# Organization_mst类的具体用法?C# Organization_mst怎么用?C# Organization_mst使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Organization_mst类属于命名空间,在下文中一共展示了Organization_mst类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Orggrdvw_RowDeleting
protected void Orggrdvw_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int orgid=0;
Organization_mst orgobj = new Organization_mst();
orgid = Convert.ToInt16(Orggrdvw.Rows[e.RowIndex].Cells[0].Text);
orgobj.Delete(orgid);
BindGrid();
lblErrorMsg.Text = Resources.MessageResource.errdelete.ToString();
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:9,代码来源:AddOrganization.aspx.cs
示例2: BindGrid
public void BindGrid()
{
BLLCollection<Organization_mst> col = new BLLCollection<Organization_mst>();
Organization_mst orgobj = new Organization_mst();
col = orgobj.Get_All();
Orggrdvw.DataSource = col;
Orggrdvw.DataBind();
clearControl();
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:9,代码来源:AddOrganization.aspx.cs
示例3: GenerateOrganization_mstObject
public object GenerateOrganization_mstObject(ref IDataReader returnData)
{
Organization_mst obj = new Organization_mst();
while (returnData.Read())
{
DateTime Mydatetime = new DateTime();
obj.Orgid = (int)returnData["Orgid"];
obj.Orgname = (string)returnData["Orgname"];
obj.Description = (string)returnData["Description"];
Mydatetime = (DateTime)returnData["Createdatetime"];
obj.Createdatetime = Mydatetime.ToString();
}
returnData.Close();
returnData.Dispose();
return obj;
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIHAutoMail,代码行数:17,代码来源:SqlDataProvider.cs
示例4: GenerateOrganization_mstCollection
public CollectionBase GenerateOrganization_mstCollection(ref IDataReader returnData)
{
BLLCollection<Organization_mst> col = new BLLCollection<Organization_mst>();
while (returnData.Read())
{
DateTime Mydatetime = new DateTime();
Organization_mst obj = new Organization_mst();
obj.Orgid = (int)returnData["Orgid"];
obj.Orgname = (string)returnData["Orgname"];
obj.Description = (string)returnData["Description"];
Mydatetime = (DateTime)returnData["Createdatetime"];
obj.Createdatetime = Mydatetime.ToString();
col.Add(obj);
}
returnData.Close();
returnData.Dispose();
return col;
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIHAutoMail,代码行数:19,代码来源:SqlDataProvider.cs
示例5: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
///Add Exception handilng try catch change by vishal 21-05-2012
try
{
#region Get Current User and his Role
MembershipUser User = Membership.GetUser();
objOrganization = objOrganization.Get_Organization();
int userid = objUser.Get_By_UserName(User.UserName.ToString(), objOrganization.Orgid);
if (userid != 0)
{
objContact = objContact.Get_By_id(userid);
lblUser.Text = objContact.Firstname + " " + objContact.Lastname;
}
}
catch (Exception ex)
{
string myScript;
myScript = "<script language=javascript>alert('Exception - '" + ex + "');</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
return;
}
#endregion
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:26,代码来源:MasterPage.master.cs
示例6: btnadd_Click
protected void btnadd_Click(object sender, EventArgs e)
{
/////Add Exception handilng try catch change by vishal 21-05-2012
try
{
#region Fetch Current User
// Fetch Current User and assign to local variable userName
MembershipUser User = Membership.GetUser();
string userName = User.UserName.ToString();
#endregion
ObjOrganization = ObjOrganization.Get_Organization();
int orgid = Convert.ToInt32(ObjOrganization.Orgid);
int userid = ObjUser.Get_By_UserName(userName, orgid);
ObjChangeNotes.Username = userid;
ObjChangeNotes.Changeid = Convert.ToInt32(Request.QueryString[0]);
ObjChangeNotes.Comments = txtcomments.Text.ToString();
ObjChangeNotes.Insert();
string myScript;
myScript = "<script language=javascript>refreshParent();</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
}
catch (Exception ex)
{
string myScript;
myScript = "<script language=javascript>alert('Exception - '" + ex + "');</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
return;
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:31,代码来源:ChangeNotes.aspx.cs
示例7: btnSolutionAdd_Click
protected void btnSolutionAdd_Click(object sender, EventArgs e)
{
string userName;
MembershipUser User = Membership.GetUser();
userName = User.UserName.ToString();
int userid;
objOrganization = objOrganization.Get_Organization();
objUser = objUser.Get_UserLogin_By_UserName(userName, objOrganization.Orgid);
int Solutionid;
ObjSolution.Title = txtTitle.Text.ToString();
ObjSolution.Content=Editor.Text.ToString();
ObjSolution.Topicid = Convert.ToInt16(drpTopic.SelectedValue);
ObjSolution.Solution = drpSolutionType.SelectedValue;
ObjSolution.Insert();
Solutionid = ObjSolutionKeyword.Get_SolutionId();
ObjSolutionKeyword.Keywords=txtKeywords.Text.ToString();
ObjSolutionKeyword.Solutionid = Solutionid;
ObjSolutionKeyword.Insert();
ObjSolutionCreator.Solutionid = Solutionid;
ObjSolutionCreator.Createdby = objUser.Userid;
ObjSolutionCreator.Insert();
objSentMailToUser.SentMailToPManager(Solutionid);
Response.Redirect("ViewSolution.aspx?solutionid" + Solutionid);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:25,代码来源:AddSolution.aspx.cs
示例8: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
//Add Exception handilng try catch change by vishal 21-05-2012
try
{
if (!IsPostBack)
{
MembershipUser User = Membership.GetUser();
objOrganization = objOrganization.Get_Organization();
int userid = objUser.Get_By_UserName(User.UserName.ToString(), objOrganization.Orgid);
if (userid != 0)
{
objContact = objContact.Get_By_id(userid);
lblUser.Text = objContact.Firstname + " " + objContact.Lastname;
}
}
XmlDataSource ds = new XmlDataSource();
ds.EnableCaching = false;
ds.DataFile = Server.MapPath("../Files/Admin.xml");
TreeView1.DataSource = ds;
TreeView1.DataBind();
}
catch (Exception ex)
{
string myScript;
myScript = "<script language=javascript>alert('Exception - '" + ex + "');</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
return;
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:31,代码来源:MasterAdmin.master.cs
示例9: updatecomment
public void updatecomment()
{
string userName;
MembershipUser User = Membership.GetUser();
solutionstatusid = Convert.ToInt32(Request.QueryString[0]);
flag = Convert.ToInt32(Request.QueryString[1]);
int userid;
if (flag == 3)
{
string seeionsid = Session["SolutionId"].ToString();
string[] str = seeionsid.Split(new char[] { ',' });
foreach (string s in str)
{
if (s == "")
{
break;
}
int solid = Convert.ToInt32(s);
ObjSolution = ObjSolution.Get_By_id(solid);
ObjSolution.Title = ObjSolution.Title;
ObjSolution.Topicid = ObjSolution.Topicid;
ObjSolution.Content = ObjSolution.Content;
ObjSolution.Comments = txtcomments.Text;
ObjSolution.SolutionStatus = solutionstatusid;
ObjSolution.Update();
userName = User.UserName.ToString();
Objorganization = Objorganization.Get_Organization();
objUser = objUser.Get_UserLogin_By_UserName(userName, Objorganization.Orgid);
ObjSolutionCreator.Solutionid = solid;
ObjSolutionCreator.LastUpdateBy = objUser.Userid;
ObjSolutionCreator.Update();
}
}
else
{
int solutionid = Convert.ToInt32(Request.QueryString[1]);
ObjSolution = ObjSolution.Get_By_id(solutionid);
ObjSolution.Title = ObjSolution.Title;
ObjSolution.Topicid = ObjSolution.Topicid;
ObjSolution.Content = ObjSolution.Content;
ObjSolution.Comments = txtcomments.Text;
ObjSolution.SolutionStatus = solutionstatusid;
ObjSolution.Update();
userName = User.UserName.ToString();
Objorganization = Objorganization.Get_Organization();
objUser = objUser.Get_UserLogin_By_UserName(userName, Objorganization.Orgid);
ObjSolutionCreator.Solutionid = solutionid;
ObjSolutionCreator.LastUpdateBy = objUser.Userid;
ObjSolutionCreator.Update();
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:58,代码来源:ApproveActions.aspx.cs
示例10: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
reqValRegion.ErrorMessage = Resources.MessageResource.errRegionName.ToString();
objOrganization = objOrganization.Get_Organization();
BindGrid();
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:9,代码来源:AddRegion.aspx.cs
示例11: BindDropSite
protected void BindDropSite()
{
string userName = "";
MembershipUser User = Membership.GetUser();
if (User != null)
{
userName = User.UserName.ToString();
}
if (userName != "")
{
int userid;
objOrganization = objOrganization.Get_Organization();
objUser = objUser.Get_UserLogin_By_UserName(userName, objOrganization.Orgid);
if (objUser.Userid != 0)
{
userid = objUser.Userid;
colUserToSite = ObjUserToSite.Get_All_By_userid(userid);
foreach (UserToSiteMapping obj in colUserToSite)
{
int siteid;
Site_mst objSite1 = new Site_mst();
siteid = obj.Siteid;
objSite1 = objSite1.Get_By_id(siteid);
if (objSite1.Siteid != 0)
{
colSite.Add(objSite1);
}
}
}
drpSite.DataTextField = "sitename";
drpSite.DataValueField = "siteid";
drpSite.DataSource = colSite;
drpSite.DataBind();
ListItem item = new ListItem();
item.Text = "-------------Select-------------";
item.Value = "0";
drpSite.Items.Add(item);
drpSite.SelectedValue = "0";
//drpSite1.DataTextField = "sitename";
//drpSite1.DataValueField = "siteid";
//drpSite1.DataSource = colSite;
//drpSite1.DataBind();
//ListItem item1= new ListItem();
//item1.Text = "-------------Select-------------";
//item1.Value = "0";
//drpSite1.Items.Add(item1);
//drpSite1.SelectedValue = "0";
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_HT,代码行数:54,代码来源:Default.aspx.cs
示例12: btnapprove_Click
protected void btnapprove_Click(object sender, EventArgs e)
{
int userid=0;
int incidentid = Convert.ToInt16(Session["incidentid"].ToString());
if (incidentid != 0)
{
//objIncidentLog = objIncidentLog.Get_By_id(incidentid);
//if (objIncidentLog.Incidentid != 0)
//{
// objIncidentLog.Incidentid = incidentid;
// objIncidentLog.Incidentlog = txtcomments.Text;
// objIncidentLog.Update();
//}
//else
//{
// objIncidentLog.Incidentid = incidentid;
// objIncidentLog.Incidentlog = txtcomments.Text;
// objIncidentLog.Insert();
//}
string userName="";
MembershipUser User = Membership.GetUser();
if (User != null)
{
userName = User.UserName.ToString();
}
if (userName != "")
{
objOrganization = objOrganization.Get_Organization();
objUser = objUser.Get_UserLogin_By_UserName(userName, objOrganization.Orgid);
if (objUser.Userid != 0)
{
userid = objUser.Userid;
}
}
objIncidentLog.Incidentid = incidentid;
objIncidentLog.Userid = userid;
objIncidentLog.Incidentlog = txtcomments.Text;
objIncidentLog.Insert();
string myScript;
myScript = "<script language=javascript>javascript:refreshParent(); javascript:window.close();</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:52,代码来源:IncidentLog.aspx.cs
示例13: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
#region Get Current User and his Role
MembershipUser User = Membership.GetUser();
objOrganization = objOrganization.Get_Organization();
int userid = objUser.Get_By_UserName(User.UserName.ToString(), objOrganization.Orgid);
if (userid != 0)
{
objContact = objContact.Get_By_id(userid);
lblUser.Text = objContact.Firstname + " " + objContact.Lastname;
}
#endregion
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:15,代码来源:MasterPage.master.cs
示例14: btnapprove_Click
protected void btnapprove_Click(object sender, EventArgs e)
{
/////Add Exception handilng try catch change by vishal 21-05-2012
try
{
int userid = 0;
int incidentid = Convert.ToInt32(Session["incidentid"].ToString());
if (incidentid != 0)
{
string userName = "";
MembershipUser User = Membership.GetUser();
if (User != null)
{
userName = User.UserName.ToString();
}
if (userName != "")
{
objOrganization = objOrganization.Get_Organization();
objUser = objUser.Get_UserLogin_By_UserName(userName, objOrganization.Orgid);
if (objUser.Userid != 0)
{
userid = objUser.Userid;
}
}
objIncidentLog.Incidentid = incidentid;
objIncidentLog.Userid = userid;
objIncidentLog.Incidentlog = txtcomments.Text;
objIncidentLog.Insert();
string myScript;
myScript = "<script language=javascript>javascript:window.close();</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
}
}
catch (Exception ex)
{
string myScript;
myScript = "<script language=javascript>alert('Exception - '" + ex + "');</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
return;
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:47,代码来源:IncidentLog1.aspx.cs
示例15: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MembershipUser User = Membership.GetUser();
objOrganization = objOrganization.Get_Organization();
int userid = objUser.Get_By_UserName(User.UserName.ToString(), objOrganization.Orgid);
if (userid != 0)
{
objContact = objContact.Get_By_id(userid);
lblUser.Text = objContact.Firstname + " " + objContact.Lastname;
}
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:17,代码来源:MasterChange.master.cs
示例16: btnorgadd_Click
protected void btnorgadd_Click(object sender, EventArgs e)
{
orgobj = orgobj.Get_Organization();
if (orgobj.Orgid == 0)
{
orgobj.Orgname = txtorgname.Text.Trim();
orgobj.Description = txtorgdesc.Text.Trim();
orgobj.Createdatetime = DateTime.Now.ToString();
orgobj.Insert();
BindGrid();
lblErrorMsg.Text = Resources.MessageResource.erradd.ToString();
}
else
{
lblErrorMsg.Text = Resources.MessageResource.errAddOrg.ToString();
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:17,代码来源:AddOrganization.aspx.cs
示例17: btnadd_Click
protected void btnadd_Click(object sender, EventArgs e)
{
#region Fetch Current User
// Fetch Current User and assign to local variable userName
MembershipUser User = Membership.GetUser();
string userName = User.UserName.ToString();
#endregion
ObjOrganization = ObjOrganization.Get_Organization();
int orgid = Convert.ToInt16(ObjOrganization.Orgid);
int userid = ObjUser.Get_By_UserName(userName, orgid);
ObjChangeNotes.Username = userid;
ObjChangeNotes.Changeid = Convert.ToInt16(Request.QueryString[0]);
ObjChangeNotes.Comments = txtcomments.Text.ToString();
ObjChangeNotes.Insert();
string myScript;
myScript = "<script language=javascript>refreshParent();</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:19,代码来源:ChangeNotes.aspx.cs
示例18: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MembershipUser User = Membership.GetUser();
objOrganization = objOrganization.Get_Organization();
int userid = objUser.Get_By_UserName(User.UserName.ToString(), objOrganization.Orgid);
if (userid != 0)
{
objContact = objContact.Get_By_id(userid);
lblUser.Text = objContact.Firstname + " " + objContact.Lastname;
}
}
XmlDataSource ds = new XmlDataSource();
ds.EnableCaching = false;
ds.DataFile = Server.MapPath("../Files/Admin.xml");
TreeView1.DataSource = ds;
TreeView1.DataBind();
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:20,代码来源:MasterAdmin.master.cs
示例19: btnRegionadd_Click
protected void btnRegionadd_Click(object sender, EventArgs e)
{
int regionid=0;
int organizationId;
objOrganization = objOrganization.Get_Organization();
organizationId=objOrganization.Orgid;
regionid = Regionobj.Get_By_RegionName(txtregionname.Text.ToString(), organizationId);
if(regionid ==0)
{
Regionobj.Regionname = txtregionname.Text.ToString();
Regionobj.Description = txtregiondesc.Text.ToString();
Regionobj.Orgid = organizationId;
Regionobj.Insert();
BindGrid();
lblerrmsg.Text = Resources.MessageResource.erradd.ToString();
}
else
{
lblerrmsg.Text = Resources.MessageResource.errRegionExist.ToString();
}
Dispose();
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:22,代码来源:AddRegion.aspx.cs
示例20: btnSolutionAdd_Click
protected void btnSolutionAdd_Click(object sender, EventArgs e)
{
///Add Exception handilng try catch change by vishal 21-05-2012
try
{
string userName;
MembershipUser User = Membership.GetUser();
userName = User.UserName.ToString();
int userid;
objOrganization = objOrganization.Get_Organization();
objUser = objUser.Get_UserLogin_By_UserName(userName, objOrganization.Orgid);
int Solutionid;
ObjSolution.Title = txtTitle.Text.ToString();
ObjSolution.Content=Editor.Text.ToString();
ObjSolution.Topicid = Convert.ToInt32(drpTopic.SelectedValue);
ObjSolution.Solution = drpSolutionType.SelectedValue;
ObjSolution.Insert();
Solutionid = ObjSolutionKeyword.Get_SolutionId();
ObjSolutionKeyword.Keywords=txtKeywords.Text.ToString();
ObjSolutionKeyword.Solutionid = Solutionid;
ObjSolutionKeyword.Insert();
ObjSolutionCreator.Solutionid = Solutionid;
ObjSolutionCreator.Createdby = objUser.Userid;
ObjSolutionCreator.Insert();
objSentMailToUser.SentMailToPManager(Solutionid);
Response.Redirect("ViewSolution.aspx?solutionid" + Solutionid);
}
catch (Exception ex)
{
string myScript;
myScript = "<script language=javascript>alert('Exception - '" + ex + "');</script>";
Page.RegisterClientScriptBlock("MyScript", myScript);
return;
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:36,代码来源:AddSolution.aspx.cs
注:本文中的Organization_mst类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论