基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
/******************************
|
||||
* 说明:单据模版
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-11-23
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Control;
|
||||
using Lskj.Model;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Util;
|
||||
using Lskj.Business.Impl;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
using Lskj.Data;
|
||||
using DevExpress.XtraBars;
|
||||
using DevExpress.XtraTab;
|
||||
using DevExpress.XtraEditors;
|
||||
using System.Collections;
|
||||
using Lskj.PubBillNewDrag.Model;
|
||||
using DevExpress.Data;
|
||||
using DevExpress.XtraGrid.Columns;
|
||||
using System.IO;
|
||||
using Lskj.Business;
|
||||
|
||||
namespace Lskj.PubBillNewDrag
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据模版
|
||||
/// </summary>
|
||||
public partial class FrmMain : BaseForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 入口参数
|
||||
/// </summary>
|
||||
public DynamicBillModel SysModel;
|
||||
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
WaitForm.ShowForm();
|
||||
this.SysModel.Privilege = SysModel.ModuleId > 0 ? BaseImpl.GetUserPurviewsByMenuId(SysModel.ModuleId + "") + "" : BaseImpl.GetUserPurviewsByMenuCode(SysModel.ModuleCode) + "";
|
||||
if (!this.SysModel.HasPrivilege())
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnPurview);
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
billModule1.OnLoad(SysModel);
|
||||
// 右键菜单调用方式,则模块名称按照系统设置设定
|
||||
if (!string.IsNullOrEmpty(this.SysModel.BillMasterSql) ||
|
||||
!string.IsNullOrEmpty(this.SysModel.BillDetailSql) ||
|
||||
!string.IsNullOrEmpty(this.SysModel.BillOrderNo))
|
||||
{
|
||||
this.Text = this.billModule1.BillModel.TypeName;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
//MessageUtil.Show(ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user